class PulleyJoint : PhysicsJoint

robot_2Generated
code_blocksInput

Description

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

Example setup:

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

Members

Instance Members

Member NameSummary
LengthAGets or sets the length of the first rope in the pulley system.
LengthBGets or sets the length of the second rope in the pulley system.
RatioGets or sets the ratio of the pulley system, affecting how the lengths of the ropes change relative to each other.
AnchorAGets or sets the anchor point for the first object in the pulley system.
AnchorBGets or sets the anchor point for the second object in the pulley system.