HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
|
Results of a Box2D raycast query, including intersection details and traversal statistics. More...
Public Attributes | |
readonly Shape | Shape |
Reference to the shape hit by the ray. | |
readonly Vec2 | Point |
World coordinates of the intersection point. | |
readonly Vec2 | Normal |
Surface normal at the intersection. | |
readonly float | Fraction |
Fraction along the ray length where the hit occurred (0 = start, 1 = end). | |
readonly int | NodeVisits |
Number of broad-phase nodes visited during traversal. | |
readonly int | LeafVisits |
Number of leaf nodes (shapes) visited during traversal. | |
Properties | |
bool | Hit [get] |
True if the ray intersects a shape. | |
Results of a Box2D raycast query, including intersection details and traversal statistics.