get absolute rotational values from entityPitch?

Blitz3D Forums/Blitz3D Programming/get absolute rotational values from entityPitch?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Its fairly simple really:
p# = EntityPitch(Entity)
If p < 0
  p = p + 360
EndIf

This will return a value between 0 to 360 instead of -180 to 180.