(2022.2.0) check_for_collision=True doesn’t seem to do anything different from =False. Could be user error, fer’sure. Reviewing the other forum issues didn’t seem to help. (Documentation on ‘plane’ might be throwing me?) My goal is to put a bunch of pallets in front of the camera (with distractors behind…) btw, this code is a simple addition to offline_generation.py
def register_pallet_placement():
scatter_plane = rep.create.plane(
scale=(2, 3, 1),
position = (3, 0, 0),
visible=False
)
def place_pallets():
pallets = rep.create.from_usd(PALLET_URL, semantics=[("class", "Pallet")], count=3)
with pallets:
rep.randomizer.scatter_2d(scatter_plane, check_for_collisions=True)
return pallets.node
rep.randomizer.register(place_pallets)
Thanks!!!