Open Mattiny opened 3 weeks ago
This requires a lot of rework and refactoring. The way to calculate the position of the spawned instance is different for each Placment mode. So there should be a more object based implementation of the PlacementModes so that each placment mode takes control of it's own algorithm.
PlacementMode.gd generates random coordinates for the MultiMesh instances. Each specific placement modes then generates the height of the spawned of the instance and place it to the new height. However, some placement modes got more complex algorithms and require additional information which are passed to all placement modes.
This should be cleaned up, so that each placement mode only gets the information which are required for this placement mode. This also includes that the calculation of the random position should take place in the specific placement mode.
This would make it easier to add new placement modes which use different algorithms.