Hey there,
I was just reading the Tween documentation and noticed the sample codes need some fixing up after trying to work out why my tweens were acting strange.
https://developer.playcanvas.com/en/tutorials/tweening/
This sample using .to
when it should be using .rotate
this.entity
.tween(this.entity.getLocalRotation())
.to(new pc.Vec3(180, 0, 180), 1.0, pc.Linear)
.loop(true)
.yoyo(true)
.start();
I haven’t checked the other samples, but it might be worth double checking them.