Low level shape cast input in generic form. This allows casting an arbitrary point cloud wrap with a radius. For example, a circle is a single point with a non-zero radius. A capsule is two points with a non-zero radius. A box is four points with a zero radius.
More...
|
| ShapeCastInput (ShapeProxy proxy, Vec2 translation, float maxFraction, bool canEncroach) |
| Constructs a new ShapeCastInput object with the given parameters.
|
|
| ShapeCastInput () |
| Constructs a new ShapeCastInput object with default values.
|
|
|
ShapeProxy | Proxy |
| A generic shape.
|
|
Vec2 | Translation |
| The translation of the shape cast.
|
|
float | MaxFraction |
| The maximum fraction of the translation to consider, typically 1.
|
|
|
bool | CanEncroach [get, set] |
| Allow shape cast to encroach when initially touching. This only works if the radius is greater than zero.
|
|
Low level shape cast input in generic form. This allows casting an arbitrary point cloud wrap with a radius. For example, a circle is a single point with a non-zero radius. A capsule is two points with a non-zero radius. A box is four points with a zero radius.
◆ ShapeCastInput()
Box2D.ShapeCastInput.ShapeCastInput |
( |
ShapeProxy |
proxy, |
|
|
Vec2 |
translation, |
|
|
float |
maxFraction, |
|
|
bool |
canEncroach |
|
) |
| |
|
inline |
Constructs a new ShapeCastInput object with the given parameters.
- Parameters
-
proxy | A generic shape |
translation | The translation of the shape cast |
maxFraction | The maximum fraction of the translation to consider, typically 1 |
canEncroach | Allow shape cast to encroach when initially touching. This only works if the radius is greater than zero. |
The documentation for this struct was generated from the following file:
- src/Box2DBindings/RayCasting/ShapeCastInput.cs