Ejemplo n.º 1
0
        public static void TransferMotionToConstraint(MenuCommand command)
        {
            var constraint = command.context as MultiRotationConstraint;

            var axesMask = new Vector3(
                System.Convert.ToSingle(constraint.data.constrainedXAxis),
                System.Convert.ToSingle(constraint.data.constrainedYAxis),
                System.Convert.ToSingle(constraint.data.constrainedZAxis));

            if (Vector3.Dot(axesMask, axesMask) < 3f)
            {
                Debug.LogWarning("Multi-Rotation constraint with one or more Constrained Axes toggled off may lose precision when transferring its motion to constraint.");
            }

            BakeUtils.TransferMotionToConstraint(constraint);
        }
Ejemplo n.º 2
0
        public static bool TransferMotionValidate(MenuCommand command)
        {
            var constraint = command.context as MultiReferentialConstraint;

            return(BakeUtils.TransferMotionValidate(constraint));
        }
Ejemplo n.º 3
0
        public static void TransferMotionToSkeleton(MenuCommand command)
        {
            var constraint = command.context as MultiReferentialConstraint;

            BakeUtils.TransferMotionToSkeleton(constraint);
        }
        public static bool TransferMotionValidate(MenuCommand command)
        {
            var constraint = command.context as TwistChainConstraint;

            return(BakeUtils.TransferMotionValidate(constraint));
        }
        public static void TransferMotionToSkeleton(MenuCommand command)
        {
            var constraint = command.context as TwistChainConstraint;

            BakeUtils.TransferMotionToSkeleton(constraint);
        }
        public static bool TransferMotionValidate(MenuCommand command)
        {
            var rigBuilder = command.context as RigBuilder;

            return(BakeUtils.TransferMotionValidate(rigBuilder));
        }
        public static void TransferMotionToSkeleton(MenuCommand command)
        {
            var rigBuilder = command.context as RigBuilder;

            BakeUtils.TransferMotionToSkeleton(rigBuilder);
        }
        public static void TransferMotionToConstraint(MenuCommand command)
        {
            var rigBuilder = command.context as RigBuilder;

            BakeUtils.TransferMotionToConstraint(rigBuilder);
        }
Ejemplo n.º 9
0
        public static void TransferMotionToConstraint(MenuCommand command)
        {
            var constraint = command.context as MultiParentConstraint;

            BakeUtils.TransferMotionToConstraint(constraint);
        }
        public static void TransferMotionToConstraint(MenuCommand command)
        {
            var constraint = command.context as TwoBoneIKConstraint;

            BakeUtils.TransferMotionToConstraint(constraint);
        }
        public static bool TransferMotionValidate(MenuCommand command)
        {
            var constraint = command.context as OverrideTransform;

            return(BakeUtils.TransferMotionValidate(constraint));
        }
        public static void TransferMotionToSkeleton(MenuCommand command)
        {
            var constraint = command.context as OverrideTransform;

            BakeUtils.TransferMotionToSkeleton(constraint);
        }