UnityEngine.Rigidbody2D.OverlapPoint C# (CSharp) Method

OverlapPoint() public method

Check if any of the Rigidbody2D colliders overlap a point in space.

public OverlapPoint ( Vector2 point ) : bool
point Vector2 A point in world space.
return bool
        public bool OverlapPoint(Vector2 point)
        {
            return INTERNAL_CALL_OverlapPoint(this, ref point);
        }

Usage Example

コード例 #1
0
 static public int OverlapPoint(IntPtr l)
 {
     try {
         UnityEngine.Rigidbody2D self = (UnityEngine.Rigidbody2D)checkSelf(l);
         UnityEngine.Vector2     a1;
         checkType(l, 2, out a1);
         var ret = self.OverlapPoint(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }