0 votes


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?

in Engine by (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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.