# \[SOLVED\] Tweening to World Coordinates Instead of Local Coordinates

**URL:** <https://forum.playcanvas.com/t/solved-tweening-to-world-coordinates-instead-of-local-coordinates/3456>\
**Category:** Help & Support\
**Created:** [February 24, 2017, 7:35pm UTC](https://forum.playcanvas.com/t/solved-tweening-to-world-coordinates-instead-of-local-coordinates/3456 "2017-02-24T19:35:46Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![mcmorry](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mcmorry/32/4845_2.png) [@mcmorry](https://forum.playcanvas.com/u/mcmorry)\
**Post date:** [March 23, 2018, 3:10pm UTC](https://forum.playcanvas.com/t/solved-tweening-to-world-coordinates-instead-of-local-coordinates/3456/9 "2018-03-23T15:10:27Z")

</div>

you don’t even need a dummy entity for that:

```javascript
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.

---

_[View the full topic](https://forum.playcanvas.com/t/solved-tweening-to-world-coordinates-instead-of-local-coordinates/3456)._
