Example #1
0
        //============================================================================================

        /**
         *  @brief
         *
         *********************************************************************************************/
        public PoseData(PoseData a_pose)
        {
            PoseId        = a_pose.PoseId;
            AnimId        = a_pose.AnimId;
            TracksId      = a_pose.TracksId;
            PrimaryClipId = a_pose.PrimaryClipId;
            Time          = a_pose.Time;
            LocalVelocity = a_pose.LocalVelocity;
            NextPoseId    = a_pose.NextPoseId;
            LastPoseId    = a_pose.LastPoseId;

            Favour = a_pose.Favour;

            JointsData = new JointData[a_pose.JointsData.Length];
            for (int i = 0; i < a_pose.JointsData.Length; ++i)
            {
                JointsData[i] = a_pose.JointsData[i];
            }

            Trajectory = new TrajectoryPoint[a_pose.Trajectory.Length];
            for (int i = 0; i < Trajectory.Length; ++i)
            {
                Trajectory[i] = a_pose.Trajectory[i];
            }

            Tags        = a_pose.Tags;
            FavourTags  = a_pose.FavourTags;
            GenericTags = a_pose.GenericTags;
            UserTags    = a_pose.UserTags;
            AnimType    = a_pose.AnimType;
        }
Example #2
0
        public EMxMAnimtype AnimType;    //Composite, IdleSet or BlendSpace

        //============================================================================================

        /**
         *  @brief
         *
         *********************************************************************************************/
        public PoseData(int a_poseId, int a_clipId, int a_tracksId, float a_time, Vector3 a_localVelocity,
                        int a_jointCount, int a_trajCount, float a_favour, ETags a_tags = ETags.None,
                        ETags a_favourTags   = ETags.None, EGenericTags a_genericTags  = EGenericTags.None,
                        EUserTags a_userTags = EUserTags.None, EMxMAnimtype a_animType = EMxMAnimtype.Composite)

        {
            PoseId        = a_poseId;
            AnimId        = a_clipId;
            TracksId      = a_tracksId;
            PrimaryClipId = a_clipId;
            Time          = a_time;
            LocalVelocity = a_localVelocity;

            Favour = a_favour;

            JointsData = new JointData[a_jointCount];
            Trajectory = new TrajectoryPoint[a_trajCount];

            NextPoseId = -1;
            LastPoseId = -1;

            Tags        = a_tags;
            FavourTags  = a_favourTags;
            GenericTags = a_genericTags;
            UserTags    = a_userTags;
            AnimType    = a_animType;
        }