Expand description
Constraint system API for Python interop.
Provides Python-friendly types for rigid body constraint solving, joints, contact constraints, motors, island management, CCD, PBD/XPBD solvers, control systems, friction models, and warm starting.
Structs§
- Axis
Limits - Joint axis and limit specification.
- Cached
Impulse - Cached impulse from the previous frame for warm starting.
- Motor
Thermal - Motor thermal model to cap torque under sustained load.
- PbdConstraint
- A PBD/XPBD constraint connecting particle indices.
- PidGains
- PID controller for motor target tracking.
- PyCCD
Result - Result of a continuous collision detection (CCD) query.
- PyConstraint
Solver - Main constraint solver configuration.
- PyContact
Constraint - A single contact point constraint between two bodies.
- PyControl
System - A simple state-space system: dx/dt = A x + B u, y = C x + D u.
- PyFriction
Model - Friction model for contact resolution.
- PyIsland
- An island groups bodies and constraints that can interact.
- PyJoint
- A joint connecting two rigid bodies.
- PyMotor
Constraint - A motor/actuator constraint driving a joint.
- PyPbd
Solver - Position-based dynamics (XPBD) solver.
- PyWarm
Start - Warm start cache for constraint impulses.
Enums§
- Friction
Model Kind - Friction model type.
- Island
Sleep State - Sleeping state of an island.
- Joint
Kind - The kind of joint.
- PbdConstraint
Type - PBD/XPBD constraint type.
- Solver
Type - Constraint solver algorithm selection.
Functions§
- clamp_
impulse - Clamp an impulse to the friction cone.
- compute_
effective_ mass - Compute the effective mass (inverse denominator) for a constraint.
- compute_
jacobian - Compute the Jacobian row for a distance constraint between two bodies.
- solve_
pgs_ iteration - Perform one PGS (Projected Gauss-Seidel) iteration over a set of constraints.