mharitsnf / ExtraSnaps

A Godot 4.X plugin that adds extra snapping functionalities for Node3D objects.
MIT License
39 stars 3 forks source link

Doesn't seem to work on children node3Ds #3

Closed nan0m closed 2 months ago

nan0m commented 3 months ago

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

oparisy commented 2 months ago

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 commented 2 months ago

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

mharitsnf commented 2 months ago

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 commented 2 months ago

works! @mharitsnf