More physics updates:
Mikal Cannon 3D Physics — v2.31.0 & v2.32.0
Two new releases this week, both focused on simulation control.
---
v2.31.0 — Body Sleep Control
You can now manually manage whether a physics body is awake or sleeping.
- WakeUp action — force a sleeping body back into the active simulation
- Sleep action — force a body to sleep, pausing its physics update
- IsSleeping expression — returns 1 if the body is sleeping, 0 if awake
Sleep state is packed directly into the per-body results batch, so IsSleeping is available every frame at no extra
cost.
---
v2.32.0 — World Pause & Revolute Joint Control
World pause:
- PausePhysics / ResumePhysics actions — freeze the entire simulation without stopping C3 ticks. Bodies hold their
last positions while paused.
- OnPhysicsPaused trigger — fires when PausePhysics is called
- IsPhysicsPaused condition — check pause state in events
Revolute joint motor & limits:
- SetRevoluteMotor — drive a revolute joint at a target angular velocity (rad/s) with a configurable force
coefficient. Set maxForce = 0 to disable the motor.
- SetRevoluteLimits — constrain a revolute joint's rotation range in degrees, with an enable/disable flag