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.ShapeCastPairInput Struct Reference

Input parameters for ShapeCast. More...

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

Public Member Functions

 ShapeCastPairInput (ShapeProxy proxyA, ShapeProxy proxyB, Transform transformA, Transform transformB, Vec2 translationB, float maxFraction, bool canEncroach)
 Constructs a new ShapeCastPairInput object with the given parameters.
 
 ShapeCastPairInput ()
 Constructs a new ShapeCastPairInput object with default values.
 

Public Attributes

ShapeProxy ProxyA
 The proxy for shape A.
 
ShapeProxy ProxyB
 The proxy for shape B.
 
Transform TransformA
 The world transform for shape A.
 
Transform TransformB
 The world transform for shape B.
 
Vec2 TranslationB
 The translation of shape B.
 
float MaxFraction
 The fraction of the translation to consider, typically 1.
 

Properties

bool CanEncroach [get, set]
 Allows shapes with a radius to move slightly closer if already touching.
 

Detailed Description

Input parameters for ShapeCast.

Constructor & Destructor Documentation

◆ ShapeCastPairInput()

Box2D.ShapeCastPairInput.ShapeCastPairInput ( ShapeProxy  proxyA,
ShapeProxy  proxyB,
Transform  transformA,
Transform  transformB,
Vec2  translationB,
float  maxFraction,
bool  canEncroach 
)
inline

Constructs a new ShapeCastPairInput object with the given parameters.

Parameters
proxyAThe proxy for shape A
proxyBThe proxy for shape B
transformAThe world transform for shape A
transformBThe world transform for shape B
translationBThe translation of shape B
maxFractionThe fraction of the translation to consider, typically 1
canEncroachAllows shapes with a radius to move slightly closer if already touching

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