Jump to content

moving a box in a square manner


reggie
 Share

Recommended Posts

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.

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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