Angle jumping/flipping with setAngleVelocity
🔫 Weapons•Updated 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.