PrismaticJoint

API reference for PrismaticJoint. 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
limit_enabledWhether the translation limits are enabled.bool
lower_limitThe lower translation limit.float
max_motor_forceThe maximum motor force.float
motor_enabledWhether the motor is enabled.bool
motor_forceThe current motor force.float
motor_speedThe target motor speed.float
speedThe current joint translation speed.float
spring_damping_ratioThe spring damping ratio.float
spring_enabledWhether the spring is enabled.bool
spring_hzThe spring frequency in Hertz.float
target_translationThe target translation for the motor.float
translationThe current joint translation.float
upper_limitThe upper translation limit.float

Methods


Set Limits

set_limits(lower: SupportsFloat, upper: SupportsFloat) None

Set the translation limits.

Args

  • lower : The lower translation limit.
  • upper : The upper translation limit.