💬

Community answer

Collected from the ACE community Discord archive around 2022-12-31. It may be informal or outdated — anyone can edit this page to improve it. This topic changes between game versions — double-check before relying on it. Original discussion

Rotating an entity's angle with physics (no phasing)

🌙 LuaUpdated 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.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.