Exemple #1
0
        public PVector2 GetMotionValue(string motionId, PVector2 linearValue, int maxSample = MotionItem.DefaultMaxSample, float tolerance = MotionItem.DefaultMaxTolerance)
        {
            MotionItem motion = GetMotion(motionId);

            return(new PVector2(
                       motion.GetMotionValue(linearValue.x, maxSample, tolerance),
                       motion.GetMotionValue(linearValue.y, maxSample, tolerance)
                       ));
        }
Exemple #2
0
        public float GetMotionValue(string motionId, float linearValue, int maxSample = MotionItem.DefaultMaxSample, float tolerance = MotionItem.DefaultMaxTolerance)
        {
            MotionItem motion = GetMotion(motionId);

            return(motion.GetMotionValue(linearValue, maxSample, tolerance));
        }