reggie Posted August 27, 2018 Share Posted August 27, 2018 Hey guys,how to move a square in a rectangular position using animation.The box should travel across a certain path and will finish its journey at its origin. Quote Link to comment Share on other sites More sharing options...
JohnK Posted August 27, 2018 Share Posted August 27, 2018 Here is an example of a cube moving along a curve. https://www.babylonjs-playground.com/#92EYG#21 Following a rectangle has the problem of what to do at corners. Another way to go is to use animations one after the other do an animation to move along one side, animate around corner and repeat. Start here http://doc.babylonjs.com/babylon101/animations and then search docs for animation. Set up a playground with your attempt and any problems ask away. GameMonetize 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.