Use Bezier curve to create custom object move path

Use Bezier curve to create custom object move path ,create animation and play it. press [space]
playground demo

BezierCurve

Originally, I wanted to create one cameraPath plugin, like the camerapath I used in Unity3D.

I’ll share the code for creating paths using CatmullRomSpline shortly

3 Likes

This is pretty coool !!! I am noticing a tiny glitch when the object is a the tangent point, it looks like it is inverting itself but this should have a place in the doc @PirateJC ?

I’ve fixed it https://playground.babylonjs.com/#N9QD14#10

1 Like

Hi @LostStar actually i do like this… i need your playground in javascript…now it is a typescript…typescript get on error…May i have it, please?

You can add a parameter to fix it

3 Likes

Thankyou so much @musk :smiling_face_with_three_hearts:

1 Like