HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
Loading...
Searching...
No Matches
Public Attributes | Properties | List of all members
Box2D.RayResult Struct Reference

Results of a Box2D raycast query, including intersection details and traversal statistics. More...

Collaboration diagram for Box2D.RayResult:
Collaboration graph
[legend]

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.
 

Detailed Description

Results of a Box2D raycast query, including intersection details and traversal statistics.


The documentation for this struct was generated from the following file: