How to get updated pos?

pc.Entity#position is not API. Did you mean to do:

var pos = this.entity.getPosition();

Note that if you want to store off that position and reference/access it later, you should clone it. Otherwise, its value will change every time the entity moves. So:

var pos = this.entity.getPosition().clone();
2 Likes