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

Low level ray cast input data. More...

Public Member Functions

 RayCastInput (Vec2 origin, Vec2 translation, float maxFraction)
 Constructs a new RayCastInput object with the given parameters.
 
 RayCastInput ()
 Constructs a new RayCastInput object with default values.
 

Public Attributes

Vec2 Origin
 Start point of the ray cast.
 
Vec2 Translation
 Translation of the ray cast.
 
float MaxFraction
 The maximum fraction of the translation to consider, typically 1.
 

Properties

bool Valid [get]
 Validate this ray cast input data (NaN, etc)
 

Detailed Description

Low level ray cast input data.

Constructor & Destructor Documentation

◆ RayCastInput()

Box2D.RayCastInput.RayCastInput ( Vec2  origin,
Vec2  translation,
float  maxFraction 
)
inline

Constructs a new RayCastInput object with the given parameters.

Parameters
originStart point of the ray cast
translationTranslation of the ray cast
maxFractionThe maximum fraction of the translation to consider, typically 1

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