Exemple #1
0
        /*
         * public bool IsFarFromGround()
         * {
         *  return GroundProximityCheckerComponent.IsWithinRayDistance() == null;
         * }
         */

        public bool IsCloseToGround()
        {
            return(GroundProximityCheckerComponent.IsWithinRayDistance() != null);
        }
Exemple #2
0
 public float?IsCloseToNavMeshSurface(out NavMeshHit hit)
 {
     return(GroundProximityCheckerComponent.IsWithinRayDistance(out hit));
 }
Exemple #3
0
 public bool IsCloseToNavMeshSurface(float value, out NavMeshHit hit)
 {
     _surfaceDistance = GroundProximityCheckerComponent.IsWithinRayDistance(out hit);
     return(_surfaceDistance != null && _surfaceDistance.Value <= value);
 }
Exemple #4
0
 public float?IsCloseToSurface()
 {
     return(GroundProximityCheckerComponent.IsWithinRayDistance());
 }