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

Scatter Positioning Problems #21

Open
pietru2004 opened this issue Oct 21, 2022 · 2 comments
Open

Scatter Positioning Problems #21

pietru2004 opened this issue Oct 21, 2022 · 2 comments

Comments

@pietru2004
Copy link

If Scatter is not in global Zero cordinates or not global rotation zero it places objects incorrectly - it does not take into account location of Scatter Node in global cords.

@pietru2004
Copy link
Author

example:
obraz
I needed to position scatter node at those cords to have no flying trees.

@pietru2004
Copy link
Author

fix is in line 175 of plugin.gd
fix code: instance.translation = (pos-_node.global_transform.origin).rotated(Vector3.UP,_node.global_rotation.y)

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

1 participant