INTERNAL_CALL_Raycast() private method

private INTERNAL_CALL_Raycast ( Collider2D self, Vector2 &direction, RaycastHit2D results, float distance, int layerMask, float minDepth, float maxDepth ) : int
self Collider2D
direction Vector2
results RaycastHit2D
distance float
layerMask int
minDepth float
maxDepth float
return int
示例#1
0
        public int Raycast(Vector2 direction, RaycastHit2D[] results, float distance, int layerMask)
        {
            float maxDepth = float.PositiveInfinity;
            float minDepth = float.NegativeInfinity;

            return(Collider2D.INTERNAL_CALL_Raycast(this, ref direction, results, distance, layerMask, minDepth, maxDepth));
        }
示例#2
0
 public int Raycast(Vector2 direction, RaycastHit2D[] results, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("Physics2D.AllLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
 {
     return(Collider2D.INTERNAL_CALL_Raycast(this, ref direction, results, distance, layerMask, minDepth, maxDepth));
 }