Inflicta Posted July 26, 2016 Share Posted July 26, 2016 Scenario: I want to move a mesh along the z axis. Option 1: set up a Babylon Animation using keys etc to move the mesh to desired position Option 2: update the meshes position.z (+1 or -1) in the render loop until the desired position Question: Which of these options would be the most CPU intensive? Is there something special about Babylon Animations that make them worth using over option 2? Thanks Quote Link to comment Share on other sites More sharing options...
Numa Posted July 26, 2016 Share Posted July 26, 2016 I think either way your CPU won't feel a thing unless you have a million of them every frame. If you're only going to move along an axis linearly you might as well just use the render loop and increment. If you want to execute more complex movements using tweens, ease in/out, trigger functions when an animation is over, loop, etc then it'll probably be easier (and readable) to use the animations. My Babylon newbie opinion Inflicta 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.