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
| Name | Description | Type |
|---|---|---|
limit_enabled | Whether the translation limits are enabled. | bool |
lower_limit | The lower translation limit. | float |
max_motor_force | The maximum motor force. | float |
motor_enabled | Whether the motor is enabled. | bool |
motor_force | The current motor force. | float |
motor_speed | The target motor speed. | float |
speed | The current joint translation speed. | float |
spring_damping_ratio | The spring damping ratio. | float |
spring_enabled | Whether the spring is enabled. | bool |
spring_hz | The spring frequency in Hertz. | float |
target_translation | The target translation for the motor. | float |
translation | The current joint translation. | float |
upper_limit | The upper translation limit. | float |
Methods
Set Limits
set_limits(lower: SupportsFloat, upper: SupportsFloat) → NoneSet the translation limits.
Args
lower: The lower translation limit.upper: The upper translation limit.