示例#1
0
BoneTransform TrackDefFragment::frame(uint32_t frameIndex) const
{
    int n = m_frames.count();
    if(n > 0)
        return m_frames[frameIndex % n];
    else
        return BoneTransform();
}
示例#2
0
    //-----------------------------------------------------------------------
    Bone::Bone() :
        IdObject( 0 ),
        mReverseBind( 0 ),
        mTransform( BoneTransform() ),
#if OGRE_DEBUG_MODE
        mCachedTransformOutOfDate( true ),
        mDebugParentNode( 0 ),
        mInitialized( false ),
#endif
        mDepthLevel( 0 ),
        mParent( 0 ),
        mName( "@Dummy Bone" ),
        mBoneMemoryManager( 0 ),
        mGlobalIndex( -1 ),
        mParentIndex( -1 )
    {
    }