-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EdgeDirection::unit_vector
is Y flipped?
#186
Comments
Nice catch, I'll write some tests to reproduce this behaviour and propose a fix asap |
Okay so this was not a really bug but due to |
But what does it represent than? Souldn't |
|
@ManevilleF, now I understand. thanks for explanation. So just to clarify, in case I have non-default |
Therefore to be applied in world space transformations are needed. |
Describe the bug
I'm using
unit_vector
to rotate objects in the hex. But it seams thatY
component of this vector is always flipped.To Reproduce
Here is a simple test, that calculates direction manually vs
unit_vector
:And here are results:
As you can see
Y
component is always flipped, whileX
is always the same (excluding rounding errors)Expected behavior
unit_vector
should return a direction to a neighbor hex.Screenshots Or Code snippet
Provided above.
The text was updated successfully, but these errors were encountered: