yorke Posted April 20, 2017 Share Posted April 20, 2017 Hi all, is there a way to interpolate actual bone rotation to have a "smooth" transition until it returns to rest pose? Explaining better: I can set rest pose on a bone by doing: mesh.skeleton.bones[19].setRotationMatrix(mesh.skeleton.bones[19].getRestPose().getRotationMatrix()) but obviously there's no transition between two poses by this way. How to interpolate along N steps between the two rotation matrices? Tnx Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 20, 2017 Share Posted April 20, 2017 Hello, you can use animation blending for that:http://doc.babylonjs.com/tutorials/animations#animation-blending Quote Link to comment Share on other sites More sharing options...
yorke Posted April 20, 2017 Author Share Posted April 20, 2017 Tnx for your answer deltakosh (and great work, keep on ). Have to try to let this work on rotation matrices and not single variables in the mesh, but seems the right way GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.