24

Steps:

  • I created two identical objects, and animated them to rotate 360 degrees.
  • I used euler for the first object and quaternion for the second.
  • In the Viewport they rotate the same, but in the Game engine the second object is rotated differently.

What's wrong with quaternion rotation in the Game engine?

blendfile

enter image description here enter image description here

gandalf3
  • 157,169
  • 58
  • 601
  • 1,133
Evgenii Orel
  • 341
  • 1
  • 4
  • Link to .blend seems to be broken. – gandalf3 Jul 31 '13 at 21:48
  • 4
    Try CTRL-A > Apply rotation – CharlesL Aug 05 '13 at 16:17
  • related: http://blender.stackexchange.com/questions/2988/cant-update-remove-keyframe-values-from-an-imported-collada-file – gandalf3 Sep 19 '13 at 01:52
  • 1
    It depends on how you animated them, and it's difficult to tell with the broken .blend file. Euler angles and quaternion angles have different parameterizations, and I'm pretty sure however you're animating the rotation doesn't account for the difference: http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles – Matthew Piziak Oct 29 '13 at 18:05
  • 3
    @OrelGenya can you reproduce this in a new blend file? If so, please report a bug . – brita_ Jun 17 '14 at 08:45
  • @brita_ I can reproduce this with a new .blend in the 2.72 RC. There seem to be some existing reports too: https://developer.blender.org/T38892 and https://developer.blender.org/T28853 – gandalf3 Oct 01 '14 at 19:19
  • @gandalf3 I took a quick look, BGE indeed only supports the default euler rotations. The animation curves in BGE are Moguri's area, he is already assigned to that last bug.. so – brita_ Oct 02 '14 at 08:00
  • 3
    This issue seems to be an unsupported feature at the moment. Can someone mark this question as answered. Brita wrote: @gandalf3 I took a quick look, BGE indeed only supports the default euler rotations. The animation curves in BGE are Moguri's area, he is already assigned to that last bug.. so – brita_ Oct 2 '14 at 8:00 – hawkenfox Dec 26 '15 at 03:10

1 Answers1

1

From Hawkenfox:

"This issue seems to be an unsupported feature at the moment. Can someone mark this question as answered?"

(Okay - I am posting this answer, pasted from your comment, for the purpose of marking this as an answer and closing the question. Please mark as answered.)

Brita wrote: "@gandalf3 I took a quick look, BGE indeed only supports the default euler rotations. The animation curves in BGE are Moguri's area, he is already assigned to that last bug.. so" – brita_ Oct 2 '14 at 8:00 – hawkenfox Dec 26 '15 at 3:10

BTW, was this resolved?

Mentalist
  • 19,092
  • 7
  • 94
  • 166