Skip to main content

Module joints

Module joints 

Expand description

6-DOF PGA [Motor] Joint Constraints (joints.rs).

Implements zero-heap Extended Position-Based Dynamics (XPBD) joint constraints operating directly on 3D PGA [Motor] poses:

Structs§

BallMotorJoint
Spherical ball-and-socket joint locking two local anchor points in world space.
FixedMotorJoint
Rigid weld joint preserving a fixed relative PGA [Motor] offset from body_a to body_b.
RevoluteMotorJoint
1-DOF revolute hinge joint with angular limits and optional motor drive.
SpringSuspensionJoint
Compliant linear suspension strut connecting body_a (chassis) and body_b (wheel/bogie).

Enums§

MotorJoint3D
Unified 6-DOF PGA [Motor] joint enum.

Functions§

solve_motor_joint_xpbd
Solves a single MotorJoint3D constraint over bodies for substep dt.