Motion Guide Plugin

hi
I want to use a motion guide to make my mesh follow a path like that http://jsfiddle.net/qEYD4/999/ , I see that it’s possible with the MotionGuidePlugin.js but it’s work only with createJs shape not with shape created with threeJs any solution plz
thnx a lot

You can use CatmullRomCurve3
I’ve made an example for You https://jsfiddle.net/qgu17w5o/107/

3 Likes

@MateuszWis Nice demo! One minor thing: When calling .getPoint() it’s recommended to pass in the target vector as a second argument. In this way you avoid unnecessary object creation.

Updated fiddle: https://jsfiddle.net/qgu17w5o/129/

1 Like