First, I’m totally new to Unreal and Blueprints (and programing as such). With the help of Internet I could build this BP. It is doing what I want, so I consider this as success.
Now I want to program snapping to the landscape and duplicate the Z vector for single meshes in the grid based on landscape shape. I just can’t find anything that I could bring to work.
I have found a note in some post that the instanced mesh can be used for such mesh grid and Z value can be found in BP by the ground collision with a trace node to set their Z position.
So, whats your question?
You have 90% of what you need. What part are you missing?
As you place items in your initial loop. Use the location to run the trace downward.
For the start point multiply the location by *-5,000.
For The end point multiply the initial point by *5,000.
(Note on Z, so 0,0,±5,000)
On hit. Take the Z and change the Z of the start point to the value you found.
Spawn the item.
Obviously, the more items in the array the slower the process.
Thank you for your answer. It sounds really absolutely trivial. But I just can’t get it work. Can you please explain how exactly and which nodes I need to connect so the single cones will snap to landscape? Thank you very much.