The PhysicsJoint class represents a physics constraint within the Sandbox physics system. It provides functionality to create and manage various types of joints between physics bodies.
The PhysicsJoint class represents a physics constraint within the Sandbox physics system. It provides functionality to create and manage various types of joints between physics bodies.
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 specified minimum and maximum lengths between two physics points. |
CreateHinge | Creates a hinge joint between two physics points or bodies. |
CreateSlider | Creates a slider joint with specified minimum and maximum lengths between two physics points or bodies. |
CreateBallSocket | Creates a ball and 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. |
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 | Indicates whether this constraint is active (enabled and not broken). |
Collisions | Enables or disables collisions between the two constrained physics bodies. |
Strength | Strength of the linear constraint. If exceeded, the joint will break. |
AngularStrength | Strength of the angular constraint. If exceeded, the joint will break. |