Tween object moving in curve path

if i want to move an object from one point to another in a straight line using tween library then i can just use the following code.

.to(new pc.Vec3(4, 0, 0), 1.0, pc.SineOut)

but lets say if i want to make an object move in a curvature path,then how am i suppose to do so???

Hi @Ashish_Rana,

Tweens will always interpolate between two values, for moving on a curve you can use a native Playcanvas class, pc.Curve. Take a look at this example:

1 Like

ok thanks for your help