예제 #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);
        }
예제 #2
0
        public static void TransferMotionToConstraint(MenuCommand command)
        {
            var constraint = command.context as MultiReferentialConstraint;

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

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

            BakeUtils.TransferMotionToConstraint(rigBuilder);
        }