Shaking diagonal movement #2018
Answered
by
hajimehoshi
alejandro-a
asked this question in
Q&A
-
Hi, I'm doing a new project and I started to implement basic movements. When I tryed to move objects on screen I noticed a some sort of "shaking" transition while performing diagonal movements. Here an example The movement look like shaking while moving in diagonal direction Here a code snippet:
Is that an issue or I just doing something wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
hajimehoshi
Apr 2, 2023
Replies: 1 comment 4 replies
-
I think this is due to errors from floating-point numbers. You can see what is going on by printing I suggest
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example: