Zylann / godot_scatter_plugin

A tool to help placing lots of environment props in a scene
187 stars 29 forks source link

Scatter Positioning Problems #21

Open pietru2004 opened 1 year ago

pietru2004 commented 1 year ago

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 commented 1 year ago

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

pietru2004 commented 1 year ago

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