💬

Community answer

Collected from the ACE community Discord archive around 2023-02-11. 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

Angle jumping/flipping with setAngleVelocity

🔫 WeaponsUpdated 2 days ago•0 views
It's the 180/-180 wrap issue - don't set the angle to -179.9, instead subtract 360 from angles above 180 (angle = angle - 360). Alternatives: use a quaternion o…

Why does a prop flip and take a jagged path when turning past ~180 degrees with setAngleVelocity

It's the 180/-180 wrap issue - don't set the angle to -179.9, instead subtract 360 from angles above 180 (angle = angle - 360). Alternatives: use a quaternion or matrix for rotation, or compute heading from a bezier curve ahead of the missile.

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.