These are collision planes that can be fed to b2SolvePlanes. Normally this is assembled by the user from plane results in b2PlaneResult.
More...
|
| CollisionPlane (Plane plane, float pushLimit, float push, bool clipVelocity) |
| Constructs a new CollisionPlane object with the given parameters.
|
|
| CollisionPlane () |
| Constructs a new CollisionPlane object with default values.
|
|
|
Plane | Plane |
| The collision plane between the mover and some shape.
|
|
float | PushLimit |
| Setting this to float.System.Math.float.MaxValue makes the plane as rigid as possible. Lower values can make the plane collision soft. Usually in meters.
|
|
float | Push |
| The push on the mover determined by b2SolvePlanes. Usually in meters.
|
|
|
bool | ClipVelocity [get, set] |
| Indicates if b2ClipVector should clip against this plane. Should be false for soft collision.
|
|
These are collision planes that can be fed to b2SolvePlanes. Normally this is assembled by the user from plane results in b2PlaneResult.
◆ CollisionPlane()
Box2D.Character_Movement.CollisionPlane.CollisionPlane |
( |
Plane |
plane, |
|
|
float |
pushLimit, |
|
|
float |
push, |
|
|
bool |
clipVelocity |
|
) |
| |
|
inline |
Constructs a new CollisionPlane object with the given parameters.
- Parameters
-
plane | The collision plane between the mover and some shape. |
pushLimit | The plane rigidity. Setting this to float.System.Math.float.MaxValue makes the plane as rigid as possible. Lower values can make the plane collision soft. Usually in meters. |
push | The push on the mover determined by b2SolvePlanes. Usually in meters. |
clipVelocity | Indicates if Mover.ClipVector(in Vec2,Box2D.Character_Movement.CollisionPlane[]) should clip against this plane. Should be false for soft collision. |
The documentation for this struct was generated from the following file:
- src/Box2DBindings/Collision/Character Movement/CollisionPlane.cs