Select a body by location
Gabriel Messager
Member, Employee Posts: 54
✭✭✭✭
Comments
-
x = 0 y = 31 z = -20 box_ref = Box.Create(Point.Create(MM(x), MM(y), MM(z))) for body in GetRootPart().GetAllBodies(): body_box = body.Shape.GetBoundingBox(Matrix.Identity) if (box_ref & body_box).IsEmpty==False: Selection.Create(body).SetActive()
0