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

Rotation is affecting movement. #32

Closed
michalbe opened this issue Aug 26, 2017 · 1 comment
Closed

Rotation is affecting movement. #32

michalbe opened this issue Aug 26, 2017 · 1 comment

Comments

@michalbe
Copy link
Owner

Repro

  • Notice the red sphere in the middle. It's moving + 0.06 in the x direction each frame:
    movement-1
  • Now, let's rotate it in every frame:
  sphere.rotate_ud(16/1000);
  sphere.rotate_rl(16/1000);

With the same movement logic, the scene looks like this now:
movement-2

@stasm
Copy link
Collaborator

stasm commented Aug 26, 2017

I have a WIP branch which adds local_position and makes position be relative to the world space.

stasm added a commit to stasm/cervus that referenced this issue Aug 27, 2017
michalbe added a commit that referenced this issue May 30, 2018
Rotation is now stored as a quaternion.

Fix #30.
Fix #32.
Fix #35.
michalbe added a commit that referenced this issue May 30, 2018
Rotation is now stored as a quaternion.

Fix #30.
Fix #32.
Fix #35.
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

No branches or pull requests

2 participants