Exemple #1
0
        public bool HasFallenOff(CGPoint inPos)
        {
            const float kLogWidth  = 38.0f;
            const float kLogLength = 68.0f;

            return(!Utilities.IsWithinRectangleP1P2P3(inPos, position, kLogWidth, kLogLength));
        }
Exemple #2
0
        public bool IsOnLog(CGPoint inPos)
        {
            const float kLogWidth  = 30.0f;
            const float kLogLength = 60.0f;

            return(Utilities.IsWithinRectangleP1P2P3(inPos, position, kLogWidth, kLogLength));
        }
        public bool IsTouched_NoCanClick(CGPoint inPos)
        {
            if (Utilities.IsWithinRectangleP1P2P3(inPos, position, width, height))
            {
                return(true);
            }

            return(false);
        }