Movement along non-cardinal directions is slighty off. #2

Open
stephank opened this Issue Sep 4, 2010 · 1 comment

Comments

Projects
None yet
1 participant
Owner

stephank commented Sep 4, 2010

When moving along a direction one step away from a cardinal direction, the movement simulation is incorrect. These are the directions at 22.5°, 67.5°, 112.5°, etc.

This can be clearly reproduced when at a minimum velocity, by just tapping forward until movement starts, then turning to one of these directions. Movement appears 'rounded off' to the nearest cardinal direction.

The code to this is in src/tank.coffee. I tried to model it after WinBolo's movement code. Perhaps this is a floating point rounding thing?

Owner

stephank commented Oct 2, 2010

Looks like winbolo actually does this too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment