saldukoo Posted March 17, 2016 Share Posted March 17, 2016 I'm trying to change the frame of my mesh to 0 after an animation. The animation starts at frame 2, ends at 33. A solution I found was to start an 'empty' animation, but it seems messy. Cant i just set the frame somehow? scene.beginAnimation(that.animation, 2, 33, false, 1.0, function(){scene.beginAnimation(that.animation, 0, 1, false, 1.0)}); Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 17, 2016 Share Posted March 17, 2016 Hey! what are you animating? If this is a skeleton there is a way to return it to rest pose (skeleton.returnToRest(): http://doc.babylonjs.com/classes/2.3/Skeleton#returntorest-rarr-void) Quote Link to comment Share on other sites More sharing options...
dbawel Posted March 17, 2016 Share Posted March 17, 2016 I would simply offset the animation in your 3D package to represent 0 to 30. Is there a reason the begin your animation a frame 2? 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.