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