0 votes

Hey there. I've encountered a really weird issue. I want to rotate my player's ship object by 180 degrees when a button is pressed. I've got it to work, but only when the RemoteTransform node that drives the camera position (Linked to the camera) is a child of the Player object.

When the RemoteTransform node is moved to another object in the hierarchy the behavior breaks and I get the rotation, but it pops back to the original rotation right at the end. The player script does not reference the RemoteTransform or the camera in any way. I'm pretty new to the engine so was just curious if this expected behavior and why. Or is this a bug?

I'm doing my rotation in the physicsprocess function.

I'm using Godot 4 beta 2

Here a gif of the issue (notice location of the RemoteTransform node)

Example of the Issue

Here is the same scenario, only thing different is the location of the RemoteTransform node

RemoteTransform Node Child of Player

Any thoughts?

Godot version Godot 4 beta 2
in Engine by (12 points)

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 [email protected] with your username.