you don’t even need a dummy entity for that:
var start = this.entityToMove.getPosition();
var dest = this.destEntity.getPosition();
// create an object to tween its properties
var p = {
x: start.x,
y: start.y
};
var tween = this.app.tween(p).to({x: dest.x, y: dest.y}, 1, pc.Linear);
tween.on('update', function() {
this.entityToMove.setPosition(p.x, p.y, start.z);
}.bind(this));
tween.start();
@vaios What is stopping the tween library to work on the world coordinates? getPosition
and getLocalPosition
return the same type.