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

Doesn't seem to work on children node3Ds #3

Closed
nan0m opened this issue Jun 21, 2024 · 4 comments
Closed

Doesn't seem to work on children node3Ds #3

nan0m opened this issue Jun 21, 2024 · 4 comments

Comments

@nan0m
Copy link

nan0m commented Jun 21, 2024

Trying to snap the child node3D of a parent node3D, the child goes to the wrong position, somewhere around world origin.

@oparisy
Copy link

oparisy commented Jun 22, 2024

Does this work as expected if you unparent those nodes?

Also note that as discussed in issue #1, snapping will currently only work with physics objects.

@nan0m
Copy link
Author

nan0m commented Jun 22, 2024

exactly, if I bring that node to the topmost level in the edited scene, it works perfectly.

@mharitsnf
Copy link
Owner

Hey, Thanks for bringing this up! I tried this and I think the issue was that the plugin uses local transform instead of global transform, making it weird when you want to snap children of Node3D.

I made a pull request (#4) that addresses this issue. Feel free to give it a try first :D

@nan0m
Copy link
Author

nan0m commented Jun 23, 2024

works! @mharitsnf

@nan0m nan0m closed this as completed Jun 23, 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

3 participants