marlin
August 1, 2017, 1:59pm
1
Hey there
i’m using the playcanvas tween library (https ://github.com/playcanvas/playcanvas-tween).
i downloaded the zip, uploaded it to my project and implemented it correctly i think:
this.entity.tween(this.entity.getPosition()).to({x: 0, y: 8, z: -12}, 1.0, pc.Linear).yoyo(true).start();
but nothing is happening (also there are no errors). the object ist just a box without any physics.
does anyone have some experience with this ?
vaios
August 1, 2017, 2:06pm
2
The tween library was updated a couple of minutes ago - please use the latest tween.js
file and that should fix it.
1 Like
marlin
August 7, 2017, 3:57pm
3
the problem has not been the library, “getPosition” just won’t work (i assume it’s read only), so i’ve set it to “getLocalPosition”
vaios
August 7, 2017, 4:09pm
4
Indeed that’s true. Your post came up right when the tween library broke for a bunch of people - what a coincidence! Nice catch