class PhysicsJoint

book_4_sparkGenerated
code_blocksInput

Description

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.

Members

Static Members

Member NameSummary
CreateFixedCreates a fixed joint between two physics points.
CreateLengthCreates a spring joint with a maximum length between two physics points.
CreateSpringCreates a spring joint with specified minimum and maximum lengths between two physics points.
CreateHingeCreates a hinge joint between two physics points or bodies.
CreateSliderCreates a slider joint with specified minimum and maximum lengths between two physics points or bodies.
CreateBallSocketCreates a ball and socket joint between two physics points or bodies.
CreatePulleyCreates a pulley joint between two physics bodies. Obsolete.

Instance Members

Member NameSummary
RemoveRemoves this joint.
WorldThe PhysicsWorld this joint belongs to.
Body1The source physics body this joint is attached to.
Body2The target physics body this joint is constraining.
Point1A specific point this joint is attached at on Body1.
Point2A specific point this joint is attached at on Body2.
IsActiveIndicates whether this constraint is active (enabled and not broken).
CollisionsEnables or disables collisions between the two constrained physics bodies.
StrengthStrength of the linear constraint. If exceeded, the joint will break.
AngularStrengthStrength of the angular constraint. If exceeded, the joint will break.