bbmario Posted October 29, 2015 Share Posted October 29, 2015 So, i'm working on a simple character controller using Babylon. I've started replacing my ugly capsule with a character model. The model has two key frames for the running animation, something like this: http://2.bp.blogspot.com/_-Q7hxXgb58k/TSW3lMhaVNI/AAAAAAAAAHw/fh8R4FWQddg/s1600/running%2Bsketch%2Bno%2Bhighlights.png I'm planning to interpolate the keyframes during gameplay. You can understand my approach better if you take a look at this video explaining the techniques used in Overgrowth. How can i do this in Babylon? Are there any built-in functions for getting the keyframes and set the bones to their correct positions? What about easing functions to interpolate between the keyframes? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 29, 2015 Share Posted October 29, 2015 Hello! each bone has an animations array containing what you are looking for: http://www.html5gamedevs.com/topic/17889-animation-of-rigged-mesh-at-runtime/?hl=%2Bbone+%2Bmatrix Some info about interpolation: http://www.babylonjs-playground.com/?20 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.