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