I have entities that are moving forward. Their entityY() is always set to 2.
When they collide with another entity they are programmed to turn away to a random angle (-180 to 180) using the TurnEntity command:
TurnEntity Entity, 0, random angle, 0
The problem is that at times, the Y position of the entities changes slightly. It might be 1.9755, 2.2012 etc...
I have not monitored it but I believe that pitch, yaw and roll may be slightly changed too.
Is there something I am overlooking about turning entities or something I should do to compensate for this?
When they collide with another entity they are programmed to turn away to a random angle (-180 to 180) using the TurnEntity command:
TurnEntity Entity, 0, random angle, 0
The problem is that at times, the Y position of the entities changes slightly. It might be 1.9755, 2.2012 etc...
I have not monitored it but I believe that pitch, yaw and roll may be slightly changed too.
Is there something I am overlooking about turning entities or something I should do to compensate for this?