Exemple #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() )
Exemple #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())
Exemple #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() )
Exemple #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())
Exemple #5
0
 def fget(self):
     return MathUtil.buildTransformMatrixQ(self._xyz, self._q4)
Exemple #6
0
 def fget(self):
     return MathUtil.buildTransformMatrixQ(self._xyz, self._q4)