Ground Available Positions

Hi all,
I have a ground and meshes that are added ;
Is there a way to get all positions where a mesh can be placed ?
=> get all available positions of a ground to add new meshes randomly in these positions

Any Suggestion Will be Appreciated,
Thank You.

1 Like

Hi @mhossry welcome to the community.

For a box of width 2W and depth 2D and for ground width 2L and height 2H. Let P be position of ground with P.y = 0.

Where x and z are all possible box positions on the ground.

P.x - L + W < x < P.x + L - W

P.z - H + D < x < P.x + H - D

2 Likes