0 votes

Hello,

sometimes engine returns wrong global position on RigidBody2D. For example in this case, I am calculating distance between ball and level center, and it returns some magic numbers...

enter image description here
enter image description here

It's not posible that ball position would be [92; 1062] my window (viewport) is 1280x800. Any ideas what is causing this and how to fix it?

asked Jan 21, 2017 in Engine by Bogdan (22 points)

Your camera must be zoomed out (and the world probably should be either Node or Node2D if you're going to add ball as it's child)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.