Jump to content

Use Babylon Animations or not?


Recommended Posts

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?



Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...