How to create a 3dmodel map like <Inscryption>?

Set up some collision boxes where there should be no trees. Perform a bunch of randomised line traces from the top.

  • if the trace hits the ground, spawn a tree
  • if the trace hits a box or another tree, don’t spawn a tree