Ejemplo n.º 1
0
        public static bool IsOnGround(GameObject gameObject, float maxGroundDistance, out GameObject hittedGameObject)
        {
            RaycastHit hit;

            if (PhysicsHelper.IsOnGround(gameObject, maxGroundDistance, out hit))
            {
                hittedGameObject = hit.collider.gameObject;
                return(true);
            }

            hittedGameObject = null;
            return(false);
        }
Ejemplo n.º 2
0
        public static bool IsOnGround(GameObject gameObject, float maxGroundDistance)
        {
            RaycastHit hit;

            return(PhysicsHelper.IsOnGround(gameObject, maxGroundDistance, out hit));
        }
Ejemplo n.º 3
0
 public static bool IsOnGround(GameObject gameObject)
 {
     return(PhysicsHelper.IsOnGround(gameObject, PhysicsHelper.DefaultMaxGroundDistance));
 }