Exemple #1
0
 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)
Exemple #2
0
 def SetCollisionAsSphere(self, radius, offset=[0, 0, 0]):
     mass = self.GetMass()
     dims = [radius, radius, radius]
     MiroAPI.SetCollisionModel_Ellipsoid(self.GetBody(), dims, mass, offset)