class PulleyJoint : PhysicsJoint

book_4_sparkGenerated
code_blocksInput

Description

The PulleyJoint class represents a pulley constraint in the physics system. It consists of two ropes that share the same length, allowing the ratio to change through physics interactions. This is typically used to simulate pulley systems where two objects are connected by ropes over a pulley.

Example setup:

@-----------------@
|                 |
|                 |
Object A       Object B

Members

Instance Members

Member NameSummary
AnchorAGets or sets the anchor point on the first object.
AnchorBGets or sets the anchor point on the second object.
LengthAGets or sets the length of the rope connected to the first object.
LengthBGets or sets the length of the rope connected to the second object.
RatioGets or sets the ratio of the pulley system.