# Non-Flowlab Related Angle Problem

I’ve spent the last 2 hours trying to figure out how to calculate angles in stormworks.
The creator of the game must’ve been dumb, since they made the angles go from -0.25 to 0.25. I have an angle to and am attempting to make an autopilot system. The only issue is, I can’t figure out how to convert -0.25 to the correct angular measurement.

The other issue is that I have to do this with an angular speed measurer. So basically, I need to use the speed of the angular momentum to calculate what my angle should be.
Only person I know smart enough for this is @JR01, so that’s why I’m asking here.

2 Likes

So before I can help, what is -0.25 and 0.25 represent as an angle?
Is this suppose to be 0 and 360?

3 Likes

I found out how to do it, but I’m confused. I copied your angleto bundle into stormworks, and it’s outputting something negative (around -43).
Here’s the equations (x1 and y1 being plane coords and x2 and y2 being target)

If you can’t read the big one it says: 90-(atan2(x,y)/pi) * 180
and the smaller ones just say y-x.

1 Like

It’s negative because you need one more expression to make it positive.
`A<0? A%360+360 : A%360`
or
`(((A%360)+360)%360)`

2 Likes