class PhysicsJoint

robot_2Generated
code_blocksInput

Description

A physics constraint.

Members

Static Methods

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 a minimum and maximum length between two physics points.
CreateHingeCreates a hinge joint between two physics points or bodies.
CreateSliderCreates a slider joint with a minimum and maximum length between two physics points or bodies.
CreateBallSocketCreates a ball socket joint between two physics points or bodies.
CreatePulleyCreates a pulley joint between two physics bodies. Obsolete

Instance Methods

Member NameSummary
RemoveRemoves this joint.

Properties

Member NameSummary
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.
IsActiveWhether this constraint is active. (i.e. is enabled, is not broken)
CollisionsEnables or disables collisions between the 2 constrained physics bodies.
StrengthStrength of the linear constraint. If it takes any more energy than this, it'll break.
AngularStrengthStrength of the angular constraint. If it takes any more energy than this, it'll break.