def SetCollisionAsEllipsoid(self, radius_x, radius_y, radius_z, offset=[0, 0, 0]): mass = self.GetMass() dims = [radius_x, radius_y, radius_z] MiroAPI.SetCollisionModel_Ellipsoid(self.GetBody(), dims, mass, offset)
def SetCollisionAsSphere(self, radius, offset=[0, 0, 0]): mass = self.GetMass() dims = [radius, radius, radius] MiroAPI.SetCollisionModel_Ellipsoid(self.GetBody(), dims, mass, offset)