struct
Eagle::Physics3D::RayHit
- Eagle::Physics3D::RayHit
- Struct
- Value
- Object
Overview
Where a ray hit: point, normal, distance and body.
Defined in:
eagle/physics/physics3d.crConstructors
Instance Method Summary
-
#body : Body
The body that was hit.
-
#distance : Float32
Distance from the ray's origin to the hit.
-
#normal : Vec3
Surface normal at the hit.
-
#point : Vec3
Where the ray hit, in world space.
Constructor Detail
def self.new(point : Eagle::Vec3, normal : Eagle::Vec3, distance : Float32, body : Eagle::Physics3D::Body)
#