public static CapsuleCastNonAlloc ( Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, |
||
origin | Vector2 | The point in 2D space where the shape originates. |
size | Vector2 | The size of the shape. |
capsuleDirection | CapsuleDirection2D | The direction of the capsule. |
angle | float | The angle of the shape (in degrees). |
direction | Vector2 | Vector representing the direction to cast the shape. |
results | Array to receive results. | |
distance | [ | Maximum distance over which to cast the shape. |
layerMask | [ | Filter to detect Colliders only on certain layers. |
minDepth | [ | Only include objects with a Z coordinate (depth) greater than this value. |
maxDepth | [ | Only include objects with a Z coordinate (depth) less than this value. |
return | int |
public static int CapsuleCastNonAlloc(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, RaycastHit2D[] results, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
{
return INTERNAL_CALL_CapsuleCastNonAlloc(ref origin, ref size, capsuleDirection, angle, ref direction, results, distance, layerMask, minDepth, maxDepth);
}
Physics2D::CapsuleCastNonAlloc ( Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, |
|
Physics2D::CapsuleCastNonAlloc ( Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, |
|
Physics2D::CapsuleCastNonAlloc ( Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, |
|
Physics2D::CapsuleCastNonAlloc ( Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, |