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.

this.entity
.tween(this.entity.getLocalPosition())
.to(new pc.Vec3(4, 0, 0), 1.0, pc.SineOut)
.loop(true)
.yoyo(true)
.start();

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:

https://developer.playcanvas.com/en/tutorials/camera-following-a-path

ok thanks for your help