A joint that constrains two bodies to move only along a specified axis. Access via the 'physics' submodule.
Experimental API:
The physics submodule is an experimental and new API that is highly susceptible to breaking changes in the future.
Inherits from Joint.
| Name | Description | Type |
|---|---|---|
spring_enabled | Whether the spring is enabled. | bool |
spring_hz | The spring frequency in Hertz. | float |
spring_damping_ratio | The spring damping ratio. | float |
target_translation | The target translation for the motor. | float |
limit_enabled | Whether the translation limits are enabled. | bool |
motor_enabled | Whether the motor is enabled. | bool |
motor_speed | The target motor speed. | float |
max_motor_force | The maximum motor force. | float |
lower_limit | The lower translation limit. | float |
upper_limit | The upper translation limit. | float |
motor_force | The current motor force. | float |
translation | The current joint translation. | float |
speed | The current joint translation speed. | float |
set_limits(lower: float, upper: float) → Noneset_limits(lower: float, upper: float) → NoneSet the translation limits.
Args
lower : The lower translation limit.upper : The upper translation limit.