Hello! For the life of me i can’t put togehter a pcg that does the simple following thing: I have 2 hedge geometry, one is 150, the other is 200cm. I want them to be randomly distributed on a spline, starting from the first point of the spline, until the last. They need to touch each other perfectly although the size difference. I tryed will all the AI-s in the world, nothing helps. Please! Also if i use spline mesh, it gives a yellow error saying my mesh is not static? Man this thing is really hard for begginners.
Hi there,
A screenshot would make everybodies life easier (scripts & viewport) to solve problem.
However if you are distributing the points randomly it just distributes them, it doesn’t take into account your mesh bounds.
You can get mesh bounds and set next points iteratively if you want to touch them or scale mesh along direction until they touch (which would not prefferred I guess)
So simply GetSplineData->Length save it. Createpoint 0 While randomize meshes with their respective length 150, 200 maybe random bool. Add 150 to distance create next.
This is also much easier in blueprints if you don’t need to use strictly pcg.