jiweigang1 Posted July 1, 2014 Share Posted July 1, 2014 var animationBox = new BABYLON.Animation("tutoAnimation", "position", 30, BABYLON.Animation.ANIMATIONTYPE_VECTOR3, BABYLON.Animation.ANIMATIONLOOPMODE_CONSTANT);i use it to do a animationbut when the animation is end i cant change the position any morebox.actionManager.registerAction(new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, function(){ box.position = new BABYLON.Vector3(box.position.x-10,box.position.y,box.position.z);}))i change position this waybefore to do the animation its work wellbut when the animation is end it cant work any morewhats wrong with it? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 1, 2014 Share Posted July 1, 2014 I think your animation is still running could you use the beginAnimation with loop = false ? Quote Link to comment Share on other sites More sharing options...
jiweigang1 Posted July 2, 2014 Author Share Posted July 2, 2014 you are right its ok now thank you 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.