public void poseFromBones ( ) { for ( int i = 0 ; i < getNumBones ( ) ; ++ i ) { GVRSceneObject bone = mBones [ i ] ; if ( bone == null ) { continue ; } if ( ( mBoneOptions [ i ] & BONE_LOCK_ROTATION ) != 0 ) { continue ; } GVRTransform trans = bone . getTransform ( ) ; mPose . setLocalMatrix ( i , trans . getLocalModelMatrix4f ( ) ) ; } mPose . sync ( ) ; updateBonePose ( ) ; }
Applies the matrices computed from the scene object s linked to the skeleton bones to the current pose .