Class Physics2D
Assembly: UnityEngine.dll
Syntax
Fields
|
Improve this Doc
View Source
AllLayers
Declaration
public const int AllLayers = -1
Field Value
|
Improve this Doc
View Source
DefaultRaycastLayers
Declaration
public const int DefaultRaycastLayers = -5
Field Value
|
Improve this Doc
View Source
IgnoreRaycastLayer
Declaration
public const int IgnoreRaycastLayer = 4
Field Value
Properties
alwaysShowColliders
Declaration
public static bool alwaysShowColliders { get; set; }
Property Value
angularSleepTolerance
Declaration
public static float angularSleepTolerance { get; set; }
Property Value
autoSimulation
Declaration
public static bool autoSimulation { get; set; }
Property Value
Declaration
public static bool autoSyncTransforms { get; set; }
Property Value
baumgarteScale
Declaration
public static float baumgarteScale { get; set; }
Property Value
baumgarteTOIScale
Declaration
public static float baumgarteTOIScale { get; set; }
Property Value
callbacksOnDisable
Declaration
public static bool callbacksOnDisable { get; set; }
Property Value
|
Improve this Doc
View Source
changeStopsCallbacks
Declaration
[Obsolete("Physics2D.changeStopsCallbacks is deprecated and will always return false.", false)]
public static bool changeStopsCallbacks { get; set; }
Property Value
colliderAABBColor
Declaration
public static Color colliderAABBColor { get; set; }
Property Value
colliderAsleepColor
Declaration
public static Color colliderAsleepColor { get; set; }
Property Value
colliderAwakeColor
Declaration
public static Color colliderAwakeColor { get; set; }
Property Value
Declaration
public static Color colliderContactColor { get; set; }
Property Value
Declaration
public static float contactArrowScale { get; set; }
Property Value
Declaration
public static float defaultContactOffset { get; set; }
Property Value
defaultPhysicsScene
Declaration
public static PhysicsScene2D defaultPhysicsScene { get; }
Property Value
gravity
Declaration
public static Vector2 gravity { get; set; }
Property Value
jobOptions
Declaration
public static PhysicsJobOptions2D jobOptions { get; set; }
Property Value
linearSleepTolerance
Declaration
public static float linearSleepTolerance { get; set; }
Property Value
maxAngularCorrection
Declaration
public static float maxAngularCorrection { get; set; }
Property Value
maxLinearCorrection
Declaration
public static float maxLinearCorrection { get; set; }
Property Value
maxRotationSpeed
Declaration
public static float maxRotationSpeed { get; set; }
Property Value
maxTranslationSpeed
Declaration
public static float maxTranslationSpeed { get; set; }
Property Value
|
Improve this Doc
View Source
minPenetrationForPenalty
Declaration
[Obsolete("Physics2D.minPenetrationForPenalty is deprecated. Use Physics2D.defaultContactOffset instead. (UnityUpgradable) -> defaultContactOffset", false)]
public static float minPenetrationForPenalty { get; set; }
Property Value
positionIterations
Declaration
public static int positionIterations { get; set; }
Property Value
queriesHitTriggers
Declaration
public static bool queriesHitTriggers { get; set; }
Property Value
queriesStartInColliders
Declaration
public static bool queriesStartInColliders { get; set; }
Property Value
reuseCollisionCallbacks
Declaration
public static bool reuseCollisionCallbacks { get; set; }
Property Value
showColliderAABB
Declaration
public static bool showColliderAABB { get; set; }
Property Value
Declaration
public static bool showColliderContacts { get; set; }
Property Value
showColliderSleep
Declaration
public static bool showColliderSleep { get; set; }
Property Value
timeToSleep
Declaration
public static float timeToSleep { get; set; }
Property Value
velocityIterations
Declaration
public static int velocityIterations { get; set; }
Property Value
velocityThreshold
Declaration
public static float velocityThreshold { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
BoxCast(Vector2, Vector2, Single, Vector2)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D BoxCast(Vector2 origin, Vector2 size, float angle, Vector2 direction)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector2, Vector2, Single, Vector2, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D BoxCast(Vector2 origin, Vector2 size, float angle, Vector2 direction, float distance)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector2, Vector2, Single, Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D BoxCast(Vector2 origin, Vector2 size, float angle, Vector2 direction, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector2, Vector2, Single, Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D BoxCast(Vector2 origin, Vector2 size, float angle, Vector2 direction, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector2, Vector2, Single, Vector2, Single, Int32, Single, Single)
Declaration
public static RaycastHit2D BoxCast(Vector2 origin, Vector2 size, float angle, Vector2 direction, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("Physics2D.AllLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
[ExcludeFromDocs]
public static int BoxCast(Vector2 origin, Vector2 size, float angle, Vector2 direction, ContactFilter2D contactFilter, RaycastHit2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int BoxCast(Vector2 origin, Vector2 size, float angle, Vector2 direction, ContactFilter2D contactFilter, RaycastHit2D[] results, [DefaultValue("Mathf.Infinity")] float distance)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastAll(Vector2, Vector2, Single, Vector2)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] BoxCastAll(Vector2 origin, Vector2 size, float angle, Vector2 direction)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastAll(Vector2, Vector2, Single, Vector2, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] BoxCastAll(Vector2 origin, Vector2 size, float angle, Vector2 direction, float distance)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastAll(Vector2, Vector2, Single, Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] BoxCastAll(Vector2 origin, Vector2 size, float angle, Vector2 direction, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastAll(Vector2, Vector2, Single, Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] BoxCastAll(Vector2 origin, Vector2 size, float angle, Vector2 direction, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastAll(Vector2, Vector2, Single, Vector2, Single, Int32, Single, Single)
Declaration
public static RaycastHit2D[] BoxCastAll(Vector2 origin, Vector2 size, float angle, Vector2 direction, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastNonAlloc(Vector2, Vector2, Single, Vector2, RaycastHit2D[])
Declaration
[ExcludeFromDocs]
public static int BoxCastNonAlloc(Vector2 origin, Vector2 size, float angle, Vector2 direction, RaycastHit2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastNonAlloc(Vector2, Vector2, Single, Vector2, RaycastHit2D[], Single)
Declaration
[ExcludeFromDocs]
public static int BoxCastNonAlloc(Vector2 origin, Vector2 size, float angle, Vector2 direction, RaycastHit2D[] results, float distance)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastNonAlloc(Vector2, Vector2, Single, Vector2, RaycastHit2D[], Single, Int32)
Declaration
[ExcludeFromDocs]
public static int BoxCastNonAlloc(Vector2 origin, Vector2 size, float angle, Vector2 direction, RaycastHit2D[] results, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastNonAlloc(Vector2, Vector2, Single, Vector2, RaycastHit2D[], Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static int BoxCastNonAlloc(Vector2 origin, Vector2 size, float angle, Vector2 direction, RaycastHit2D[] results, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastNonAlloc(Vector2, Vector2, Single, Vector2, RaycastHit2D[], Single, Int32, Single, Single)
Declaration
public static int BoxCastNonAlloc(Vector2 origin, Vector2 size, 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)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector2, Vector2, CapsuleDirection2D, Single, Vector2)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D CapsuleCast(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D CapsuleCast(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, float distance)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D CapsuleCast(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D CapsuleCast(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, Single, Int32, Single, Single)
Declaration
public static RaycastHit2D CapsuleCast(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
[ExcludeFromDocs]
public static int CapsuleCast(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, ContactFilter2D contactFilter, RaycastHit2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int CapsuleCast(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, ContactFilter2D contactFilter, RaycastHit2D[] results, [DefaultValue("Mathf.Infinity")] float distance)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastAll(Vector2, Vector2, CapsuleDirection2D, Single, Vector2)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] CapsuleCastAll(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastAll(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] CapsuleCastAll(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, float distance)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastAll(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] CapsuleCastAll(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastAll(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] CapsuleCastAll(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastAll(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, Single, Int32, Single, Single)
Declaration
public static RaycastHit2D[] CapsuleCastAll(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastNonAlloc(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, RaycastHit2D[])
Declaration
[ExcludeFromDocs]
public static int CapsuleCastNonAlloc(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, RaycastHit2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastNonAlloc(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, RaycastHit2D[], Single)
Declaration
[ExcludeFromDocs]
public static int CapsuleCastNonAlloc(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, RaycastHit2D[] results, float distance)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastNonAlloc(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, RaycastHit2D[], Single, Int32)
Declaration
[ExcludeFromDocs]
public static int CapsuleCastNonAlloc(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, RaycastHit2D[] results, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastNonAlloc(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, RaycastHit2D[], Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static int CapsuleCastNonAlloc(Vector2 origin, Vector2 size, CapsuleDirection2D capsuleDirection, float angle, Vector2 direction, RaycastHit2D[] results, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastNonAlloc(Vector2, Vector2, CapsuleDirection2D, Single, Vector2, RaycastHit2D[], Single, Int32, Single, Single)
Declaration
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)
Parameters
Returns
|
Improve this Doc
View Source
CircleCast(Vector2, Single, Vector2)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D CircleCast(Vector2 origin, float radius, Vector2 direction)
Parameters
Returns
|
Improve this Doc
View Source
CircleCast(Vector2, Single, Vector2, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D CircleCast(Vector2 origin, float radius, Vector2 direction, float distance)
Parameters
Returns
|
Improve this Doc
View Source
CircleCast(Vector2, Single, Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D CircleCast(Vector2 origin, float radius, Vector2 direction, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CircleCast(Vector2, Single, Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D CircleCast(Vector2 origin, float radius, Vector2 direction, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
CircleCast(Vector2, Single, Vector2, Single, Int32, Single, Single)
Declaration
public static RaycastHit2D CircleCast(Vector2 origin, float radius, Vector2 direction, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
[ExcludeFromDocs]
public static int CircleCast(Vector2 origin, float radius, Vector2 direction, ContactFilter2D contactFilter, RaycastHit2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int CircleCast(Vector2 origin, float radius, Vector2 direction, ContactFilter2D contactFilter, RaycastHit2D[] results, [DefaultValue("Mathf.Infinity")] float distance)
Parameters
Returns
|
Improve this Doc
View Source
CircleCastAll(Vector2, Single, Vector2)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] CircleCastAll(Vector2 origin, float radius, Vector2 direction)
Parameters
Returns
|
Improve this Doc
View Source
CircleCastAll(Vector2, Single, Vector2, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] CircleCastAll(Vector2 origin, float radius, Vector2 direction, float distance)
Parameters
Returns
|
Improve this Doc
View Source
CircleCastAll(Vector2, Single, Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] CircleCastAll(Vector2 origin, float radius, Vector2 direction, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CircleCastAll(Vector2, Single, Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] CircleCastAll(Vector2 origin, float radius, Vector2 direction, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
CircleCastAll(Vector2, Single, Vector2, Single, Int32, Single, Single)
Declaration
public static RaycastHit2D[] CircleCastAll(Vector2 origin, float radius, Vector2 direction, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
CircleCastNonAlloc(Vector2, Single, Vector2, RaycastHit2D[])
Declaration
[ExcludeFromDocs]
public static int CircleCastNonAlloc(Vector2 origin, float radius, Vector2 direction, RaycastHit2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
CircleCastNonAlloc(Vector2, Single, Vector2, RaycastHit2D[], Single)
Declaration
[ExcludeFromDocs]
public static int CircleCastNonAlloc(Vector2 origin, float radius, Vector2 direction, RaycastHit2D[] results, float distance)
Parameters
Returns
|
Improve this Doc
View Source
CircleCastNonAlloc(Vector2, Single, Vector2, RaycastHit2D[], Single, Int32)
Declaration
[ExcludeFromDocs]
public static int CircleCastNonAlloc(Vector2 origin, float radius, Vector2 direction, RaycastHit2D[] results, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CircleCastNonAlloc(Vector2, Single, Vector2, RaycastHit2D[], Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static int CircleCastNonAlloc(Vector2 origin, float radius, Vector2 direction, RaycastHit2D[] results, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
CircleCastNonAlloc(Vector2, Single, Vector2, RaycastHit2D[], Single, Int32, Single, Single)
Declaration
public static int CircleCastNonAlloc(Vector2 origin, float radius, Vector2 direction, RaycastHit2D[] results, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Distance(Collider2D, Collider2D)
Declaration
public static ColliderDistance2D Distance(Collider2D colliderA, Collider2D colliderB)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int GetContacts(Collider2D collider1, Collider2D collider2, ContactFilter2D contactFilter, ContactPoint2D[] contacts)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int GetContacts(Collider2D collider, Collider2D[] colliders)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int GetContacts(Collider2D collider, ContactFilter2D contactFilter, Collider2D[] colliders)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int GetContacts(Collider2D collider, ContactFilter2D contactFilter, ContactPoint2D[] contacts)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int GetContacts(Collider2D collider, ContactPoint2D[] contacts)
Parameters
Returns
|
Improve this Doc
View Source
GetContacts(Rigidbody2D, Collider2D[])
Declaration
public static int GetContacts(Rigidbody2D rigidbody, Collider2D[] colliders)
Parameters
Returns
|
Improve this Doc
View Source
GetContacts(Rigidbody2D, ContactFilter2D, Collider2D[])
Declaration
public static int GetContacts(Rigidbody2D rigidbody, ContactFilter2D contactFilter, Collider2D[] colliders)
Parameters
Returns
|
Improve this Doc
View Source
GetContacts(Rigidbody2D, ContactFilter2D, ContactPoint2D[])
Declaration
public static int GetContacts(Rigidbody2D rigidbody, ContactFilter2D contactFilter, ContactPoint2D[] contacts)
Parameters
Returns
|
Improve this Doc
View Source
GetContacts(Rigidbody2D, ContactPoint2D[])
Declaration
public static int GetContacts(Rigidbody2D rigidbody, ContactPoint2D[] contacts)
Parameters
Returns
GetIgnoreCollision(Collider2D, Collider2D)
Declaration
public static bool GetIgnoreCollision(Collider2D collider1, Collider2D collider2)
Parameters
Returns
|
Improve this Doc
View Source
GetIgnoreLayerCollision(Int32, Int32)
Declaration
public static bool GetIgnoreLayerCollision(int layer1, int layer2)
Parameters
Returns
|
Improve this Doc
View Source
GetLayerCollisionMask(Int32)
Declaration
public static int GetLayerCollisionMask(int layer)
Parameters
Type |
Name |
Description |
Int32 |
layer |
|
Returns
|
Improve this Doc
View Source
GetRayIntersection(Ray)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D GetRayIntersection(Ray ray)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
Returns
|
Improve this Doc
View Source
GetRayIntersection(Ray, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D GetRayIntersection(Ray ray, float distance)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
Single |
distance |
|
Returns
|
Improve this Doc
View Source
GetRayIntersection(Ray, Single, Int32)
Declaration
public static RaycastHit2D GetRayIntersection(Ray ray, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
GetRayIntersectionAll(Ray)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] GetRayIntersectionAll(Ray ray)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
Returns
|
Improve this Doc
View Source
GetRayIntersectionAll(Ray, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] GetRayIntersectionAll(Ray ray, float distance)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
Single |
distance |
|
Returns
|
Improve this Doc
View Source
GetRayIntersectionAll(Ray, Single, Int32)
Declaration
public static RaycastHit2D[] GetRayIntersectionAll(Ray ray, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
GetRayIntersectionNonAlloc(Ray, RaycastHit2D[])
Declaration
[ExcludeFromDocs]
public static int GetRayIntersectionNonAlloc(Ray ray, RaycastHit2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
GetRayIntersectionNonAlloc(Ray, RaycastHit2D[], Single)
Declaration
[ExcludeFromDocs]
public static int GetRayIntersectionNonAlloc(Ray ray, RaycastHit2D[] results, float distance)
Parameters
Returns
|
Improve this Doc
View Source
GetRayIntersectionNonAlloc(Ray, RaycastHit2D[], Single, Int32)
Declaration
public static int GetRayIntersectionNonAlloc(Ray ray, RaycastHit2D[] results, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
IgnoreCollision(Collider2D, Collider2D)
Declaration
[ExcludeFromDocs]
public static void IgnoreCollision(Collider2D collider1, Collider2D collider2)
Parameters
IgnoreCollision(Collider2D, Collider2D, Boolean)
Declaration
public static void IgnoreCollision(Collider2D collider1, Collider2D collider2, [DefaultValue("true")] bool ignore)
Parameters
|
Improve this Doc
View Source
IgnoreLayerCollision(Int32, Int32)
Declaration
[ExcludeFromDocs]
public static void IgnoreLayerCollision(int layer1, int layer2)
Parameters
|
Improve this Doc
View Source
IgnoreLayerCollision(Int32, Int32, Boolean)
Declaration
public static void IgnoreLayerCollision(int layer1, int layer2, bool ignore)
Parameters
IsTouching(Collider2D, Collider2D)
Declaration
public static bool IsTouching(Collider2D collider1, Collider2D collider2)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool IsTouching(Collider2D collider1, Collider2D collider2, ContactFilter2D contactFilter)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool IsTouching(Collider2D collider, ContactFilter2D contactFilter)
Parameters
Returns
|
Improve this Doc
View Source
IsTouchingLayers(Collider2D)
Declaration
[ExcludeFromDocs]
public static bool IsTouchingLayers(Collider2D collider)
Parameters
Returns
IsTouchingLayers(Collider2D, Int32)
Declaration
public static bool IsTouchingLayers(Collider2D collider, [DefaultValue("Physics2D.AllLayers")] int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
Linecast(Vector2, Vector2)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D Linecast(Vector2 start, Vector2 end)
Parameters
Returns
|
Improve this Doc
View Source
Linecast(Vector2, Vector2, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D Linecast(Vector2 start, Vector2 end, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
Linecast(Vector2, Vector2, Int32, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D Linecast(Vector2 start, Vector2 end, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
Linecast(Vector2, Vector2, Int32, Single, Single)
Declaration
public static RaycastHit2D Linecast(Vector2 start, Vector2 end, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int Linecast(Vector2 start, Vector2 end, ContactFilter2D contactFilter, RaycastHit2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
LinecastAll(Vector2, Vector2)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] LinecastAll(Vector2 start, Vector2 end)
Parameters
Returns
|
Improve this Doc
View Source
LinecastAll(Vector2, Vector2, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] LinecastAll(Vector2 start, Vector2 end, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
LinecastAll(Vector2, Vector2, Int32, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] LinecastAll(Vector2 start, Vector2 end, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
LinecastAll(Vector2, Vector2, Int32, Single, Single)
Declaration
public static RaycastHit2D[] LinecastAll(Vector2 start, Vector2 end, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
LinecastNonAlloc(Vector2, Vector2, RaycastHit2D[])
Declaration
[ExcludeFromDocs]
public static int LinecastNonAlloc(Vector2 start, Vector2 end, RaycastHit2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
LinecastNonAlloc(Vector2, Vector2, RaycastHit2D[], Int32)
Declaration
[ExcludeFromDocs]
public static int LinecastNonAlloc(Vector2 start, Vector2 end, RaycastHit2D[] results, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
LinecastNonAlloc(Vector2, Vector2, RaycastHit2D[], Int32, Single)
Declaration
[ExcludeFromDocs]
public static int LinecastNonAlloc(Vector2 start, Vector2 end, RaycastHit2D[] results, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
LinecastNonAlloc(Vector2, Vector2, RaycastHit2D[], Int32, Single, Single)
Declaration
public static int LinecastNonAlloc(Vector2 start, Vector2 end, RaycastHit2D[] results, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapArea(Vector2, Vector2)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapArea(Vector2 pointA, Vector2 pointB)
Parameters
Returns
|
Improve this Doc
View Source
OverlapArea(Vector2, Vector2, Int32)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapArea(Vector2 pointA, Vector2 pointB, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapArea(Vector2, Vector2, Int32, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapArea(Vector2 pointA, Vector2 pointB, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapArea(Vector2, Vector2, Int32, Single, Single)
Declaration
public static Collider2D OverlapArea(Vector2 pointA, Vector2 pointB, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int OverlapArea(Vector2 pointA, Vector2 pointB, ContactFilter2D contactFilter, Collider2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapAreaAll(Vector2, Vector2)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapAreaAll(Vector2 pointA, Vector2 pointB)
Parameters
Returns
|
Improve this Doc
View Source
OverlapAreaAll(Vector2, Vector2, Int32)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapAreaAll(Vector2 pointA, Vector2 pointB, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapAreaAll(Vector2, Vector2, Int32, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapAreaAll(Vector2 pointA, Vector2 pointB, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapAreaAll(Vector2, Vector2, Int32, Single, Single)
Declaration
public static Collider2D[] OverlapAreaAll(Vector2 pointA, Vector2 pointB, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapAreaNonAlloc(Vector2, Vector2, Collider2D[])
Declaration
[ExcludeFromDocs]
public static int OverlapAreaNonAlloc(Vector2 pointA, Vector2 pointB, Collider2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapAreaNonAlloc(Vector2, Vector2, Collider2D[], Int32)
Declaration
[ExcludeFromDocs]
public static int OverlapAreaNonAlloc(Vector2 pointA, Vector2 pointB, Collider2D[] results, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapAreaNonAlloc(Vector2, Vector2, Collider2D[], Int32, Single)
Declaration
[ExcludeFromDocs]
public static int OverlapAreaNonAlloc(Vector2 pointA, Vector2 pointB, Collider2D[] results, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapAreaNonAlloc(Vector2, Vector2, Collider2D[], Int32, Single, Single)
Declaration
public static int OverlapAreaNonAlloc(Vector2 pointA, Vector2 pointB, Collider2D[] results, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBox(Vector2, Vector2, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapBox(Vector2 point, Vector2 size, float angle)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBox(Vector2, Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapBox(Vector2 point, Vector2 size, float angle, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBox(Vector2, Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapBox(Vector2 point, Vector2 size, float angle, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBox(Vector2, Vector2, Single, Int32, Single, Single)
Declaration
public static Collider2D OverlapBox(Vector2 point, Vector2 size, float angle, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int OverlapBox(Vector2 point, Vector2 size, float angle, ContactFilter2D contactFilter, Collider2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxAll(Vector2, Vector2, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapBoxAll(Vector2 point, Vector2 size, float angle)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxAll(Vector2, Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapBoxAll(Vector2 point, Vector2 size, float angle, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxAll(Vector2, Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapBoxAll(Vector2 point, Vector2 size, float angle, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxAll(Vector2, Vector2, Single, Int32, Single, Single)
Declaration
public static Collider2D[] OverlapBoxAll(Vector2 point, Vector2 size, float angle, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxNonAlloc(Vector2, Vector2, Single, Collider2D[])
Declaration
[ExcludeFromDocs]
public static int OverlapBoxNonAlloc(Vector2 point, Vector2 size, float angle, Collider2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxNonAlloc(Vector2, Vector2, Single, Collider2D[], Int32)
Declaration
[ExcludeFromDocs]
public static int OverlapBoxNonAlloc(Vector2 point, Vector2 size, float angle, Collider2D[] results, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxNonAlloc(Vector2, Vector2, Single, Collider2D[], Int32, Single)
Declaration
[ExcludeFromDocs]
public static int OverlapBoxNonAlloc(Vector2 point, Vector2 size, float angle, Collider2D[] results, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxNonAlloc(Vector2, Vector2, Single, Collider2D[], Int32, Single, Single)
Declaration
public static int OverlapBoxNonAlloc(Vector2 point, Vector2 size, float angle, Collider2D[] results, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsule(Vector2, Vector2, CapsuleDirection2D, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapCapsule(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsule(Vector2, Vector2, CapsuleDirection2D, Single, Int32)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapCapsule(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsule(Vector2, Vector2, CapsuleDirection2D, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapCapsule(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsule(Vector2, Vector2, CapsuleDirection2D, Single, Int32, Single, Single)
Declaration
public static Collider2D OverlapCapsule(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int OverlapCapsule(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle, ContactFilter2D contactFilter, Collider2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsuleAll(Vector2, Vector2, CapsuleDirection2D, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapCapsuleAll(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsuleAll(Vector2, Vector2, CapsuleDirection2D, Single, Int32)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapCapsuleAll(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsuleAll(Vector2, Vector2, CapsuleDirection2D, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapCapsuleAll(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsuleAll(Vector2, Vector2, CapsuleDirection2D, Single, Int32, Single, Single)
Declaration
public static Collider2D[] OverlapCapsuleAll(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsuleNonAlloc(Vector2, Vector2, CapsuleDirection2D, Single, Collider2D[])
Declaration
[ExcludeFromDocs]
public static int OverlapCapsuleNonAlloc(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle, Collider2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsuleNonAlloc(Vector2, Vector2, CapsuleDirection2D, Single, Collider2D[], Int32)
Declaration
[ExcludeFromDocs]
public static int OverlapCapsuleNonAlloc(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle, Collider2D[] results, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsuleNonAlloc(Vector2, Vector2, CapsuleDirection2D, Single, Collider2D[], Int32, Single)
Declaration
[ExcludeFromDocs]
public static int OverlapCapsuleNonAlloc(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle, Collider2D[] results, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsuleNonAlloc(Vector2, Vector2, CapsuleDirection2D, Single, Collider2D[], Int32, Single, Single)
Declaration
public static int OverlapCapsuleNonAlloc(Vector2 point, Vector2 size, CapsuleDirection2D direction, float angle, Collider2D[] results, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircle(Vector2, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapCircle(Vector2 point, float radius)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircle(Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapCircle(Vector2 point, float radius, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircle(Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapCircle(Vector2 point, float radius, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircle(Vector2, Single, Int32, Single, Single)
Declaration
public static Collider2D OverlapCircle(Vector2 point, float radius, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int OverlapCircle(Vector2 point, float radius, ContactFilter2D contactFilter, Collider2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircleAll(Vector2, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapCircleAll(Vector2 point, float radius)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircleAll(Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapCircleAll(Vector2 point, float radius, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircleAll(Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapCircleAll(Vector2 point, float radius, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircleAll(Vector2, Single, Int32, Single, Single)
Declaration
public static Collider2D[] OverlapCircleAll(Vector2 point, float radius, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircleNonAlloc(Vector2, Single, Collider2D[])
Declaration
[ExcludeFromDocs]
public static int OverlapCircleNonAlloc(Vector2 point, float radius, Collider2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircleNonAlloc(Vector2, Single, Collider2D[], Int32)
Declaration
[ExcludeFromDocs]
public static int OverlapCircleNonAlloc(Vector2 point, float radius, Collider2D[] results, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircleNonAlloc(Vector2, Single, Collider2D[], Int32, Single)
Declaration
[ExcludeFromDocs]
public static int OverlapCircleNonAlloc(Vector2 point, float radius, Collider2D[] results, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCircleNonAlloc(Vector2, Single, Collider2D[], Int32, Single, Single)
Declaration
public static int OverlapCircleNonAlloc(Vector2 point, float radius, Collider2D[] results, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int OverlapCollider(Collider2D collider, ContactFilter2D contactFilter, Collider2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapPoint(Vector2)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapPoint(Vector2 point)
Parameters
Type |
Name |
Description |
Vector2 |
point |
|
Returns
|
Improve this Doc
View Source
OverlapPoint(Vector2, Int32)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapPoint(Vector2 point, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapPoint(Vector2, Int32, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D OverlapPoint(Vector2 point, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapPoint(Vector2, Int32, Single, Single)
Declaration
public static Collider2D OverlapPoint(Vector2 point, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int OverlapPoint(Vector2 point, ContactFilter2D contactFilter, Collider2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapPointAll(Vector2)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapPointAll(Vector2 point)
Parameters
Type |
Name |
Description |
Vector2 |
point |
|
Returns
|
Improve this Doc
View Source
OverlapPointAll(Vector2, Int32)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapPointAll(Vector2 point, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapPointAll(Vector2, Int32, Single)
Declaration
[ExcludeFromDocs]
public static Collider2D[] OverlapPointAll(Vector2 point, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapPointAll(Vector2, Int32, Single, Single)
Declaration
public static Collider2D[] OverlapPointAll(Vector2 point, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapPointNonAlloc(Vector2, Collider2D[])
Declaration
[ExcludeFromDocs]
public static int OverlapPointNonAlloc(Vector2 point, Collider2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapPointNonAlloc(Vector2, Collider2D[], Int32)
Declaration
[ExcludeFromDocs]
public static int OverlapPointNonAlloc(Vector2 point, Collider2D[] results, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapPointNonAlloc(Vector2, Collider2D[], Int32, Single)
Declaration
[ExcludeFromDocs]
public static int OverlapPointNonAlloc(Vector2 point, Collider2D[] results, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
OverlapPointNonAlloc(Vector2, Collider2D[], Int32, Single, Single)
Declaration
public static int OverlapPointNonAlloc(Vector2 point, Collider2D[] results, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector2, Vector2)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D Raycast(Vector2 origin, Vector2 direction)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector2, Vector2, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D Raycast(Vector2 origin, Vector2 direction, float distance)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector2, Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D Raycast(Vector2 origin, Vector2 direction, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector2, Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D Raycast(Vector2 origin, Vector2 direction, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector2, Vector2, Single, Int32, Single, Single)
Declaration
public static RaycastHit2D Raycast(Vector2 origin, Vector2 direction, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
[ExcludeFromDocs]
public static int Raycast(Vector2 origin, Vector2 direction, ContactFilter2D contactFilter, RaycastHit2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int Raycast(Vector2 origin, Vector2 direction, ContactFilter2D contactFilter, RaycastHit2D[] results, [DefaultValue("Mathf.Infinity")] float distance)
Parameters
Returns
|
Improve this Doc
View Source
RaycastAll(Vector2, Vector2)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] RaycastAll(Vector2 origin, Vector2 direction)
Parameters
Returns
|
Improve this Doc
View Source
RaycastAll(Vector2, Vector2, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] RaycastAll(Vector2 origin, Vector2 direction, float distance)
Parameters
Returns
|
Improve this Doc
View Source
RaycastAll(Vector2, Vector2, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] RaycastAll(Vector2 origin, Vector2 direction, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
RaycastAll(Vector2, Vector2, Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit2D[] RaycastAll(Vector2 origin, Vector2 direction, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
RaycastAll(Vector2, Vector2, Single, Int32, Single, Single)
Declaration
public static RaycastHit2D[] RaycastAll(Vector2 origin, Vector2 direction, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Vector2, Vector2, RaycastHit2D[])
Declaration
[ExcludeFromDocs]
public static int RaycastNonAlloc(Vector2 origin, Vector2 direction, RaycastHit2D[] results)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Vector2, Vector2, RaycastHit2D[], Single)
Declaration
[ExcludeFromDocs]
public static int RaycastNonAlloc(Vector2 origin, Vector2 direction, RaycastHit2D[] results, float distance)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Vector2, Vector2, RaycastHit2D[], Single, Int32)
Declaration
[ExcludeFromDocs]
public static int RaycastNonAlloc(Vector2 origin, Vector2 direction, RaycastHit2D[] results, float distance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Vector2, Vector2, RaycastHit2D[], Single, Int32, Single)
Declaration
[ExcludeFromDocs]
public static int RaycastNonAlloc(Vector2 origin, Vector2 direction, RaycastHit2D[] results, float distance, int layerMask, float minDepth)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Vector2, Vector2, RaycastHit2D[], Single, Int32, Single, Single)
Declaration
public static int RaycastNonAlloc(Vector2 origin, Vector2 direction, RaycastHit2D[] results, [DefaultValue("Mathf.Infinity")] float distance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("-Mathf.Infinity")] float minDepth, [DefaultValue("Mathf.Infinity")] float maxDepth)
Parameters
Returns
|
Improve this Doc
View Source
SetLayerCollisionMask(Int32, Int32)
Declaration
public static void SetLayerCollisionMask(int layer, int layerMask)
Parameters
|
Improve this Doc
View Source
Simulate(Single)
Declaration
public static bool Simulate(float step)
Parameters
Type |
Name |
Description |
Single |
step |
|
Returns
Declaration
public static void SyncTransforms()
Extension Methods