Punn Posted September 27, 2015 Share Posted September 27, 2015 I want a mesh circling around a vector - not with sphere.registerBeforeRender (I can do that), but with BABYLON.Animation. Since I have to calculate the new position, how am I doing that? Quote Link to comment Share on other sites More sharing options...
iiceman Posted September 27, 2015 Share Posted September 27, 2015 Maybe something like that: http://www.babylonjs-playground.com/#SQU84 You can calculate the values for the keyframes before you start the animation the same way you would with registerBeforeRender. The problem is getting the correct number of steps/keyframes. I just played around and got this result. But there should be a way to calculate more precise values. Hope that helps....somehow Wingnut and Punn 2 Quote Link to comment Share on other sites More sharing options...
Punn Posted October 15, 2015 Author Share Posted October 15, 2015 Anyway, how many meshes do we have? Quote Link to comment Share on other sites More sharing options...
iiceman Posted October 15, 2015 Share Posted October 15, 2015 Uhm.. 1 mesh? Not sure what you mean 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.