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.
This sample using
.to when it should be using
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.