Draw a curved line between two random points?

PerCat
Fri, 19 Jul 2019 20:08:34 +0000
Blueprint

Hey all! I have a setup that spawns random tiles in a grid. I’m wondering how I would then get two random points on the landscape, draw a randomly curved line. Then do a sphere trace between them deleting any tiles in the way. Then later I’ll spawn different tiles in the now empty spots on the grid.

So basically:

1. Get point “A”.

2. Get point “B”.

3. Draw random, curved line between them.

4. Sphere trace along line.

5. Save HISM’s location data to an array.

6. Delete HISMs.

7. Pull empty spot’s data and populate with new tiles.

Any help appreciated.

11 posts - 1 participant