Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void WalkableShape::setTransform(const MatrixF & mat)
- {
- mObjToWorld = mWorldToObj = mat;
- mWorldToObj.affineInverse();
- // Update the world-space AABB.
- resetWorldBox();
- // If we're in a SceneManager, sync our scene state.
- if( mSceneManager != NULL )
- mSceneManager->notifyObjectDirty( this );
- if ( mPhysicsRep )
- { // We can't use kinematic target if we have attached objects, the new position won't
- // be set until after the collide/slide on the attached object
- if (mAttachments.size() > 0)
- mPhysicsRep->setTransform( mat );
- else
- mPhysicsRep->moveKinematicTo( mat );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement