Esempio n. 1
0
 def setLocationAndRotation(self, location, *args ):
     if len(args) == 3:
         self._matrix = MathUtil.buildTransformMatrix(location, *args)
     else:
         self._matrix = MathUtil.buildTransformMatrixQ(location, *args)
     if hasattr(self, "body") and self.body is not None:
         self.body.SetMatrix( self._matrix.toList() )
Esempio n. 2
0
 def setLocationAndRotation(self, location, *args):
     if len(args) == 3:
         self._matrix = MathUtil.buildTransformMatrix(location, *args)
     else:
         self._matrix = MathUtil.buildTransformMatrixQ(location, *args)
     if hasattr(self, "body") and self.body is not None:
         self.body.SetMatrix(self._matrix.toList())
Esempio n. 3
0
 def setGraphicsTransform( self ):
     if Settings.DebugTransforms:
         m = MathUtil.buildTransformMatrixQ( self.location, self.q4)
         GraphicsCard.multMatrix( m.toList() )
     else:
         GraphicsCard.multMatrix( self.body.GetMatrix() )
Esempio n. 4
0
 def setGraphicsTransform(self):
     if Settings.DebugTransforms:
         m = MathUtil.buildTransformMatrixQ(self.location, self.q4)
         GraphicsCard.multMatrix(m.toList())
     else:
         GraphicsCard.multMatrix(self.body.GetMatrix())
Esempio n. 5
0
 def fget(self):
     return MathUtil.buildTransformMatrixQ(self._xyz, self._q4)
Esempio n. 6
0
 def fget(self):
     return MathUtil.buildTransformMatrixQ(self._xyz, self._q4)