| 818 | } |
| 819 | |
| 820 | void PhysicsShape::setTransform( const MatrixF &newMat ) |
| 821 | { |
| 822 | Parent::setTransform( newMat ); |
| 823 | |
| 824 | // This is only called to set an absolute position |
| 825 | // so we discard the delta state. |
| 826 | mState.position = getPosition(); |
| 827 | mState.orientation.set( newMat ); |
| 828 | mRenderState[0] = mRenderState[1] = mState; |
| 829 | setMaskBits( StateMask ); |
| 830 | |
| 831 | if ( mPhysicsRep ) |
| 832 | mPhysicsRep->setTransform( newMat ); |
| 833 | } |
| 834 | |
| 835 | void PhysicsShape::setScale( const VectorF &scale ) |
| 836 | { |
no test coverage detected