Can I use pc.curve on 2D objects to folllow a curve path?

Hi,
I have a 2D object and I can’t use physics due to some purposes. Can I use pc.curve to move 2D object in a curvy manner?

Hi @Hassan_Amjad1,

Yes you can, you can declare a curve attribute with two curves (x,y or x,z etc). Check the manual page here:

https://developer.playcanvas.com/en/user-manual/scripting/script-attributes/#curve-attribute