Thread history

From Talk:Fusion
Viewing a history listing
Jump to navigation Jump to search
Time User Activity Comment
16:17, 15 September 2013 Maribo (talk | contribs) New thread created  

Error in the code

I think there is a mistake in your code. It seems you have switched from degrees to radians, but not switched all of the actual math.

setTurnRightRadians(e.getBearing()+90-40*movementDirection);

This should actually be

setTurnRightRadians(e.getBearingRadians() + Math.PI/2 - (Math.PI/4.5)*movementDirection);

or

setTurnRightRadians(Math.toRadians(e.getBearing() + 90 - 40*movementDirection);
Maribo (talk)16:17, 15 September 2013