public static void CreateAgentSkeleton(
            this GameEntity gameEntity,
            string skeletonName,
            bool isHumanoid,
            MBActionSet actionSet,
            string monsterUsageSetName,
            Monster monster)
        {
            AgentVisualsNativeData agentVisualsNativeData = new AgentVisualsNativeData()
            {
                MainHandItemBoneIndex          = monster.MainHandItemBoneIndex,
                OffHandItemBoneIndex           = monster.OffHandItemBoneIndex,
                MainHandItemSecondaryBoneIndex = monster.MainHandItemSecondaryBoneIndex,
                OffHandItemSecondaryBoneIndex  = monster.OffHandItemSecondaryBoneIndex,
                RiderSitBoneIndex            = monster.RiderSitBoneIndex,
                ReinHandleBoneIndex          = monster.ReinHandleBoneIndex,
                ReinCollision1BoneIndex      = monster.ReinCollision1BoneIndex,
                ReinCollision2BoneIndex      = monster.ReinCollision2BoneIndex,
                HeadLookDirectionBoneIndex   = monster.HeadLookDirectionBoneIndex,
                ThoraxLookDirectionBoneIndex = monster.ThoraxLookDirectionBoneIndex,
                MainHandNumBonesForIk        = monster.MainHandNumBonesForIk,
                OffHandNumBonesForIk         = monster.OffHandNumBonesForIk,
                ReinHandleLeftLocalPosition  = monster.ReinHandleLeftLocalPosition,
                ReinHandleRightLocalPosition = monster.ReinHandleRightLocalPosition
            };

            gameEntity.Skeleton = MBAPI.IMBSkeletonExtensions.CreateAgentSkeleton(skeletonName, isHumanoid, actionSet.Index, monsterUsageSetName, ref agentVisualsNativeData);
        }
 public static void CreateSkeletonWithActionSet(
     this GameEntity gameEntity,
     ref AgentVisualsNativeData agentVisualsNativeData,
     ref AnimationSystemData animationSystemData)
 {
     gameEntity.Skeleton = MBSkeletonExtensions.CreateWithActionSet(ref agentVisualsNativeData, ref animationSystemData);
 }
Пример #3
0
 public static Skeleton CreateWithActionSet(
     ref AgentVisualsNativeData agentVisualsNativeData,
     ref AnimationSystemData animationSystemData)
 {
     return(MBAPI.IMBSkeletonExtensions.CreateWithActionSet(ref agentVisualsNativeData, ref animationSystemData));
 }