Rotating an entity's angle with physics (no phasing)
🌙 Lua•Updated 2 days ago•0 views
Use PhysObj:applyTorque() to rotate with physics - for a target angle, make the target angle local to the entity and apply torque toward it. The criticalPD lib …
How to set an entity's angle while still colliding with other entities instead of phasing through
Use PhysObj:applyTorque() to rotate with physics - for a target angle, make the target angle local to the entity and apply torque toward it. The criticalPD lib has the math for PD-controlled rotation; quaternions combined with applyTorque also work.