Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doors ignore local scene tranforms #30

Closed
Bezoika opened this issue Jan 30, 2024 · 3 comments
Closed

Doors ignore local scene tranforms #30

Bezoika opened this issue Jan 30, 2024 · 3 comments

Comments

@Bezoika
Copy link

Bezoika commented Jan 30, 2024

Been really struggling with doors, if the door's local rotation is set differently than the packed scene rotation, it will reset to the packed scene rotation on scene load. This happens whether it is Tween or Animation based.

@Bezoika
Copy link
Author

Bezoika commented Jan 30, 2024

Interestingly enough, if i tie the instanced door to a Node3D and set the rotation on that locally instead of on the door, this is no longer an issue.

@Phazorknight
Copy link
Owner

Hi,
I understand your issue and I've struggled with this myself. Technically it's happening because the doors don't ignore the transforms, but it's still not intuitive.
The easiest way to solve this would be to reparent the Node you attach the door script to (usually an Animateable Body) to the packed scene root node, instead of it itself being the root node.

I'm hoping to have some time to update the documentation soon to show this step by step.

@Bezoika
Copy link
Author

Bezoika commented Jan 30, 2024

I see now, I was confusing myself thinking it had to do with save states or some weird function in the doors script. I'll just have to make sure my door scenes have an extra parent node.

@Bezoika Bezoika closed this as completed Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants