I am trying to retrieve the player’s position (to calculate the distance between the player and an object), but even though the player is moving in the scene, I always get (0,0,0) (because in the reference scene, the character is at (0,0,0)). How could I retrieve the player’s position in the main scene?
Im using the first person character controller for the player and found the position by adding a “player” tag to the player and using entity.getGlobalTransform();
Thank you