WheelJoint

A joint that simulates a wheel attached to a vehicle body. 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
spring_enabledWhether the spring is enabled.bool
spring_hzThe spring frequency in Hertz.float
spring_damping_ratioThe spring damping ratio.float
limit_enabledWhether the translation limits are enabled.bool
motor_enabledWhether the motor is enabled.bool
motor_speedThe target motor speed in radians per second.float
max_motor_torqueThe maximum motor torque.float
lower_limitThe lower translation limit.float
upper_limitThe upper translation limit.float
motor_torqueThe current motor torque.float

Methods


Set Limits

set_limits(lower: float, upper: float) None

Set the translation limits.

Args

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