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() )
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())
def setGraphicsTransform( self ): if Settings.DebugTransforms: m = MathUtil.buildTransformMatrixQ( self.location, self.q4) GraphicsCard.multMatrix( m.toList() ) else: GraphicsCard.multMatrix( self.body.GetMatrix() )
def setGraphicsTransform(self): if Settings.DebugTransforms: m = MathUtil.buildTransformMatrixQ(self.location, self.q4) GraphicsCard.multMatrix(m.toList()) else: GraphicsCard.multMatrix(self.body.GetMatrix())
def fget(self): return MathUtil.buildTransformMatrixQ(self._xyz, self._q4)
def fget(self): return MathUtil.buildTransformMatrixQ(self._xyz, self._q4)