0 votes

In the demo projects git repository, under the "viewport" folder there is a GUIin3D tutorial.

https://github.com/godotengine/godot-demo-projects

Basically it's a floating menu that I've since implemented into my game. However, I've run into a problem. The sliders do not work properly if the scene is moved away from the origin. This of course isn't an issue when playing the scene itself, but becomes more of a problem when instancing the scene in another.

So:
Would anyone be able to explain why this occurs and propose a solution?
or alternatively
Would a solution using raycasting to determine what button a player is interacting with (by press or sliding) be easier, and if so how would I accomplish this.

Thanks!

edit: I believe I have narrowed the issue down to somewhere around line 35 if anyone is also trying to help me find a solution.

edit2: Still looking for a solution. I did find a fix if the sign is JUST being moved and not rotated however and posted it on this issue I raised in the git repo: https://github.com/godotengine/godot-demo-projects/issues/347
Still looking for a solution that covers all the bases however.

in Engine by (58 points)
recategorized by

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