Timeline for Unity ECS: Issues with rotation
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 25, 2022 at 15:45 | answer | added | Goularou | timeline score: 0 | |
| May 31, 2021 at 19:39 | vote | accept | Mav | ||
| May 11, 2021 at 17:39 | comment | added | DMGregory♦ |
Ahh, there's your problem, you're converting from a quaternion to Euler angles, doing math on those angles, then converting back. The quaternion-to-Euler conversion is not required to return the same numbers you put in, only a trio that accomplishes some equivalent orientation, even if it reaches it by a very different series of three rotations. Did you consider just storing your Euler angle triplet throughout and using the basic Quaternion.Euler for a one-way conversion to quaternion from that persistent source of truth?
|
|
| May 11, 2021 at 17:30 | history | edited | Mav | CC BY-SA 4.0 |
added 591 characters in body
|
| May 11, 2021 at 0:06 | comment | added | DMGregory♦ | Can you show us the code you were trying to use previously? This can improve search hits for users struggling with similar attempts. | |
| S May 11, 2021 at 0:00 | answer | added | Mav | timeline score: 0 | |
| S May 11, 2021 at 0:00 | history | asked | Mav | CC BY-SA 4.0 |