Terminator Posted August 5, 2016 Share Posted August 5, 2016 Hello, If I want to animate the position.z of the camera, I use: var animationCameraPosition = new BABYLON.Animation("cameraPositionAnimation", "position.z", 30, BABYLON.Animation.ANIMATIONTYPE_FLOAT, BABYLON.Animation.ANIMATIONLOOPMODE_CONSTANT); is there a way to animate smoothly towards a certain target point ?? for example "target.z" e.g: var animationCamera = new BABYLON.Animation("cameraPositionAnimation", "target.z", 30, BABYLON.Animation.ANIMATIONTYPE_FLOAT, BABYLON.Animation.ANIMATIONLOOPMODE_CONSTANT); Note: I am looking for a way where I can set the animation for each axis separately without using Vector3 (e.g target.x / target.y / target.z) Quote Link to comment Share on other sites More sharing options...
Wingnut Posted August 6, 2016 Share Posted August 6, 2016 Please see http://www.html5gamedevs.com/topic/24292-moving-a-camera-forward-using-the-code/?do=findComment&comment=138972 thx. 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.