Skip to content
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

Update MatRotation.js #41

Closed
wants to merge 1 commit into from
Closed

Update MatRotation.js #41

wants to merge 1 commit into from

Conversation

pigloo
Copy link

@pigloo pigloo commented Apr 4, 2016

This is causing some strange results when rotating by low or high or negative numbers on the X Y or Z axis, for example in the Codepen below I have rotated two platforms on the Y axis by 359 and 1 degree so the Red balls should fall and come to a rest on the Blue platforms, instead they roll off in opposite directions.

http://codepen.io/pigloo/pen/ZWaBrR/

This piece of code appears to have been ported from here: http://www.euclideanspace.com/maths/geometry/rotations/conversions/eulerToAngle/ but I think there is an error.

I am not sure if this effects anything else but from my testing it solves the issue.

This is causing some strange results when rotating by low or high or negative numbers on the X Y or Z axis, for example in the Codepen below I have rotated two platforms on the Y axis by 359 and 1 degree so the Red balls should fall and come to a rest on the Blue platforms, instead they roll off in opposite directions.

http://codepen.io/pigloo/pen/ZWaBrR/

This piece of code appears to have been ported from here: http://www.euclideanspace.com/maths/geometry/rotations/conversions/eulerToAngle/ but I think there is an error. 

I am not sure if this effects anything else but from my testing it solves the issue.
@pigloo
Copy link
Author

pigloo commented Apr 6, 2016

On further testing this does not seem to solve the issue completely, will get back with more comments soon

@pigloo pigloo closed this Apr 6, 2016
@pigloo pigloo deleted the patch-1 branch April 7, 2016 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant