A physics constraint.
A physics constraint.
Member Name | Summary |
---|---|
CreateFixed | Creates a fixed joint between two physics points. |
CreateLength | Creates a spring joint with a maximum length between two physics points. |
CreateSpring | Creates a spring joint with a minimum and maximum length between two physics points. |
CreateHinge | Creates a hinge joint between two physics points or bodies. |
CreateSlider | Creates a slider joint with a minimum and maximum length between two physics points or bodies. |
CreateBallSocket | Creates a ball socket joint between two physics points or bodies. |
CreatePulley | Creates a pulley joint between two physics bodies. Obsolete |
Member Name | Summary |
---|---|
Remove | Removes this joint. |
Member Name | Summary |
---|---|
World | The PhysicsWorld this joint belongs to. |
Body1 | The source physics body this joint is attached to. |
Body2 | The target physics body this joint is constraining. |
Point1 | A specific point this joint is attached at on Body1. |
Point2 | A specific point this joint is attached at on Body2. |
IsActive | Whether this constraint is active. (i.e. is enabled, is not broken) |
Collisions | Enables or disables collisions between the 2 constrained physics bodies. |
Strength | Strength of the linear constraint. If it takes any more energy than this, it'll break. |
AngularStrength | Strength of the angular constraint. If it takes any more energy than this, it'll break. |