Jump to content

Rotation of an imported mesh


Recommended Posts

I want to animate the rotation of some objects from an imported mesh. But the rotation behaves very different on an imported object.

How can I get this to work the same as it works on native objects.

To illustrate I made a playground where the cube above the cat behaves as it should. They both have the same keyframes.:


I hope someone knows,




Link to comment
Share on other sites

I am not sure about the root cause, but if you animate a parent then it works, so maybe that helps?

** edit: yours works if you set:

cat.rotationQuaternion = null;

Use one or the other - that's a gotcha that gets everybody!  Use animation type: BABYLON.Animation.ANIMATIONTYPE_QUATERNION otherwise - if you need an example ask.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...