RevoluteJoint

API reference for RevoluteJoint. Access via the 'physics' submodule.

Experimental API:

The physics submodule is a VERY experimental and new API that is highly susceptible to breaking changes in the future.

Inherits from Joint.

Properties


NameDescriptionType
angleThe current joint angle in radians.float
limit_enabledWhether the angle limits are enabled.bool
lower_limitThe lower angle limit in radians.float
max_motor_torqueThe maximum motor torque.float
motor_enabledWhether the motor is enabled.bool
motor_speedThe target motor speed in radians per second.float
motor_torqueThe current motor torque.float
spring_damping_ratioThe spring damping ratio.float
spring_enabledWhether the spring is enabled.bool
spring_hzThe spring frequency in Hertz.float
target_angleThe target angle for the motor in radians.float
upper_limitThe upper angle limit in radians.float

Methods


Set Limits

set_limits(lower: SupportsFloat, upper: SupportsFloat) None

Set the angle limits.

Args

  • lower : The lower angle limit in radians.
  • upper : The upper angle limit in radians.