Looks like the problem's more than just with roll left and right :)
In case it matters: usually the 4th parameter of TurnEntity entity%,pitch#,yaw#,roll#,[global%] deals with the roll.
Positive Roll rotates the entity COUNTER-clockwise. Negative rolls clockwise.
The values read back with EntityRoll(entity) range from 0 to 180 where it then 'flips' to -180 (or -179.9999999 etc.) an continues back to 0
The 'flipping' can resullt in what's known as a gimbal-lock this has been a cause of presumed errors in the past, where the orientation is restrained to certain vallues. More information can be found on wikipedia etc. regarding this effect.
|