MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / _setDerivedPosition

Method _setDerivedPosition

OgreMain/src/OgreNode.cpp:722–734  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

720
721 //-----------------------------------------------------------------------
722 void Node::_setDerivedPosition( const Vector3 &pos )
723 {
724 // find where the node would end up in parent's local space
725 if( mParent )
726 {
727 setPosition( mParent->convertWorldToLocalPosition( pos ) );
728 mTransform.mDerivedPosition->setFromVector3( pos, mTransform.mIndex );
729 mTransform.mDerivedTransform[mTransform.mIndex].makeTrans( pos );
730#if OGRE_DEBUG_MODE >= OGRE_DEBUG_MEDIUM
731 mCachedTransformOutOfDate = false;
732#endif
733 }
734 }
735 //-----------------------------------------------------------------------
736 void Node::_setDerivedOrientation( const Quaternion &q )
737 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected