Class Physics
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
autoSimulation
Declaration
public static bool autoSimulation { get; set; }
Property Value
Declaration
public static bool autoSyncTransforms { get; set; }
Property Value
bounceThreshold
Declaration
public static float bounceThreshold { get; set; }
Property Value
|
Improve this Doc
View Source
bounceTreshold
Declaration
[Obsolete("Please use bounceThreshold instead.")]
public static float bounceTreshold { get; set; }
Property Value
Declaration
public static float defaultContactOffset { get; set; }
Property Value
defaultPhysicsScene
Declaration
public static PhysicsScene defaultPhysicsScene { get; }
Property Value
defaultSolverIterations
Declaration
public static int defaultSolverIterations { get; set; }
Property Value
defaultSolverVelocityIterations
Declaration
public static int defaultSolverVelocityIterations { get; set; }
Property Value
gravity
Declaration
public static Vector3 gravity { get; set; }
Property Value
interCollisionDistance
Declaration
public static float interCollisionDistance { get; set; }
Property Value
interCollisionSettingsToggle
Declaration
public static bool interCollisionSettingsToggle { get; set; }
Property Value
interCollisionStiffness
Declaration
public static float interCollisionStiffness { get; set; }
Property Value
|
Improve this Doc
View Source
penetrationPenaltyForce
Declaration
[Obsolete("penetrationPenaltyForce has no effect.")]
public static float penetrationPenaltyForce { get; set; }
Property Value
queriesHitBackfaces
Declaration
public static bool queriesHitBackfaces { get; set; }
Property Value
queriesHitTriggers
Declaration
public static bool queriesHitTriggers { get; set; }
Property Value
reuseCollisionCallbacks
Declaration
public static bool reuseCollisionCallbacks { get; set; }
Property Value
|
Improve this Doc
View Source
sleepAngularVelocity
Declaration
[Obsolete("The sleepAngularVelocity is no longer supported. Use sleepThreshold. Note that sleepThreshold is energy but not velocity.")]
public static float sleepAngularVelocity { get; set; }
Property Value
sleepThreshold
Declaration
public static float sleepThreshold { get; set; }
Property Value
|
Improve this Doc
View Source
sleepVelocity
Declaration
[Obsolete("The sleepVelocity is no longer supported. Use sleepThreshold. Note that sleepThreshold is energy but not velocity.")]
public static float sleepVelocity { get; set; }
Property Value
|
Improve this Doc
View Source
solverIterationCount
Declaration
[Obsolete("Please use Physics.defaultSolverIterations instead. (UnityUpgradable) -> defaultSolverIterations")]
public static int solverIterationCount { get; set; }
Property Value
|
Improve this Doc
View Source
solverVelocityIterationCount
Declaration
[Obsolete("Please use Physics.defaultSolverVelocityIterations instead. (UnityUpgradable) -> defaultSolverVelocityIterations")]
public static int solverVelocityIterationCount { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
BoxCast(Vector3, Vector3, Vector3)
Declaration
[ExcludeFromDocs]
public static bool BoxCast(Vector3 center, Vector3 halfExtents, Vector3 direction)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector3, Vector3, Vector3, Quaternion)
Declaration
[ExcludeFromDocs]
public static bool BoxCast(Vector3 center, Vector3 halfExtents, Vector3 direction, Quaternion orientation)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector3, Vector3, Vector3, Quaternion, Single)
Declaration
[ExcludeFromDocs]
public static bool BoxCast(Vector3 center, Vector3 halfExtents, Vector3 direction, Quaternion orientation, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector3, Vector3, Vector3, Quaternion, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool BoxCast(Vector3 center, Vector3 halfExtents, Vector3 direction, Quaternion orientation, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector3, Vector3, Vector3, Quaternion, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool BoxCast(Vector3 center, Vector3 halfExtents, Vector3 direction, [DefaultValue("Quaternion.identity")] Quaternion orientation, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector3, Vector3, Vector3, out RaycastHit)
Declaration
[ExcludeFromDocs]
public static bool BoxCast(Vector3 center, Vector3 halfExtents, Vector3 direction, out RaycastHit hitInfo)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector3, Vector3, Vector3, out RaycastHit, Quaternion)
Declaration
[ExcludeFromDocs]
public static bool BoxCast(Vector3 center, Vector3 halfExtents, Vector3 direction, out RaycastHit hitInfo, Quaternion orientation)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector3, Vector3, Vector3, out RaycastHit, Quaternion, Single)
Declaration
[ExcludeFromDocs]
public static bool BoxCast(Vector3 center, Vector3 halfExtents, Vector3 direction, out RaycastHit hitInfo, Quaternion orientation, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector3, Vector3, Vector3, out RaycastHit, Quaternion, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool BoxCast(Vector3 center, Vector3 halfExtents, Vector3 direction, out RaycastHit hitInfo, Quaternion orientation, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
BoxCast(Vector3, Vector3, Vector3, out RaycastHit, Quaternion, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool BoxCast(Vector3 center, Vector3 halfExtents, Vector3 direction, out RaycastHit hitInfo, [DefaultValue("Quaternion.identity")] Quaternion orientation, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastAll(Vector3, Vector3, Vector3)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] BoxCastAll(Vector3 center, Vector3 halfExtents, Vector3 direction)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastAll(Vector3, Vector3, Vector3, Quaternion)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] BoxCastAll(Vector3 center, Vector3 halfExtents, Vector3 direction, Quaternion orientation)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastAll(Vector3, Vector3, Vector3, Quaternion, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] BoxCastAll(Vector3 center, Vector3 halfExtents, Vector3 direction, Quaternion orientation, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastAll(Vector3, Vector3, Vector3, Quaternion, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] BoxCastAll(Vector3 center, Vector3 halfExtents, Vector3 direction, Quaternion orientation, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastAll(Vector3, Vector3, Vector3, Quaternion, Single, Int32, QueryTriggerInteraction)
Declaration
public static RaycastHit[] BoxCastAll(Vector3 center, Vector3 halfExtents, Vector3 direction, [DefaultValue("Quaternion.identity")] Quaternion orientation, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastNonAlloc(Vector3, Vector3, Vector3, RaycastHit[])
Declaration
[ExcludeFromDocs]
public static int BoxCastNonAlloc(Vector3 center, Vector3 halfExtents, Vector3 direction, RaycastHit[] results)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastNonAlloc(Vector3, Vector3, Vector3, RaycastHit[], Quaternion)
Declaration
[ExcludeFromDocs]
public static int BoxCastNonAlloc(Vector3 center, Vector3 halfExtents, Vector3 direction, RaycastHit[] results, Quaternion orientation)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastNonAlloc(Vector3, Vector3, Vector3, RaycastHit[], Quaternion, Single)
Declaration
[ExcludeFromDocs]
public static int BoxCastNonAlloc(Vector3 center, Vector3 halfExtents, Vector3 direction, RaycastHit[] results, Quaternion orientation, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastNonAlloc(Vector3, Vector3, Vector3, RaycastHit[], Quaternion, Single, Int32)
Declaration
[ExcludeFromDocs]
public static int BoxCastNonAlloc(Vector3 center, Vector3 halfExtents, Vector3 direction, RaycastHit[] results, Quaternion orientation, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
BoxCastNonAlloc(Vector3, Vector3, Vector3, RaycastHit[], Quaternion, Single, Int32, QueryTriggerInteraction)
Declaration
public static int BoxCastNonAlloc(Vector3 center, Vector3 halfExtents, Vector3 direction, RaycastHit[] results, [DefaultValue("Quaternion.identity")] Quaternion orientation, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector3, Vector3, Single, Vector3)
Declaration
[ExcludeFromDocs]
public static bool CapsuleCast(Vector3 point1, Vector3 point2, float radius, Vector3 direction)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector3, Vector3, Single, Vector3, Single)
Declaration
[ExcludeFromDocs]
public static bool CapsuleCast(Vector3 point1, Vector3 point2, float radius, Vector3 direction, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector3, Vector3, Single, Vector3, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool CapsuleCast(Vector3 point1, Vector3 point2, float radius, Vector3 direction, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector3, Vector3, Single, Vector3, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool CapsuleCast(Vector3 point1, Vector3 point2, float radius, Vector3 direction, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector3, Vector3, Single, Vector3, out RaycastHit)
Declaration
[ExcludeFromDocs]
public static bool CapsuleCast(Vector3 point1, Vector3 point2, float radius, Vector3 direction, out RaycastHit hitInfo)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector3, Vector3, Single, Vector3, out RaycastHit, Single)
Declaration
[ExcludeFromDocs]
public static bool CapsuleCast(Vector3 point1, Vector3 point2, float radius, Vector3 direction, out RaycastHit hitInfo, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector3, Vector3, Single, Vector3, out RaycastHit, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool CapsuleCast(Vector3 point1, Vector3 point2, float radius, Vector3 direction, out RaycastHit hitInfo, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCast(Vector3, Vector3, Single, Vector3, out RaycastHit, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool CapsuleCast(Vector3 point1, Vector3 point2, float radius, Vector3 direction, out RaycastHit hitInfo, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastAll(Vector3, Vector3, Single, Vector3)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] CapsuleCastAll(Vector3 point1, Vector3 point2, float radius, Vector3 direction)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastAll(Vector3, Vector3, Single, Vector3, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] CapsuleCastAll(Vector3 point1, Vector3 point2, float radius, Vector3 direction, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastAll(Vector3, Vector3, Single, Vector3, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] CapsuleCastAll(Vector3 point1, Vector3 point2, float radius, Vector3 direction, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastAll(Vector3, Vector3, Single, Vector3, Single, Int32, QueryTriggerInteraction)
Declaration
public static RaycastHit[] CapsuleCastAll(Vector3 point1, Vector3 point2, float radius, Vector3 direction, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastNonAlloc(Vector3, Vector3, Single, Vector3, RaycastHit[])
Declaration
[ExcludeFromDocs]
public static int CapsuleCastNonAlloc(Vector3 point1, Vector3 point2, float radius, Vector3 direction, RaycastHit[] results)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastNonAlloc(Vector3, Vector3, Single, Vector3, RaycastHit[], Single)
Declaration
[ExcludeFromDocs]
public static int CapsuleCastNonAlloc(Vector3 point1, Vector3 point2, float radius, Vector3 direction, RaycastHit[] results, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastNonAlloc(Vector3, Vector3, Single, Vector3, RaycastHit[], Single, Int32)
Declaration
[ExcludeFromDocs]
public static int CapsuleCastNonAlloc(Vector3 point1, Vector3 point2, float radius, Vector3 direction, RaycastHit[] results, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CapsuleCastNonAlloc(Vector3, Vector3, Single, Vector3, RaycastHit[], Single, Int32, QueryTriggerInteraction)
Declaration
public static int CapsuleCastNonAlloc(Vector3 point1, Vector3 point2, float radius, Vector3 direction, RaycastHit[] results, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
CheckBox(Vector3, Vector3)
Declaration
[ExcludeFromDocs]
public static bool CheckBox(Vector3 center, Vector3 halfExtents)
Parameters
Returns
|
Improve this Doc
View Source
CheckBox(Vector3, Vector3, Quaternion)
Declaration
[ExcludeFromDocs]
public static bool CheckBox(Vector3 center, Vector3 halfExtents, Quaternion orientation)
Parameters
Returns
|
Improve this Doc
View Source
CheckBox(Vector3, Vector3, Quaternion, Int32)
Declaration
[ExcludeFromDocs]
public static bool CheckBox(Vector3 center, Vector3 halfExtents, Quaternion orientation, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CheckBox(Vector3, Vector3, Quaternion, Int32, QueryTriggerInteraction)
Declaration
public static bool CheckBox(Vector3 center, Vector3 halfExtents, [DefaultValue("Quaternion.identity")] Quaternion orientation, [DefaultValue("DefaultRaycastLayers")] int layermask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
CheckCapsule(Vector3, Vector3, Single)
Declaration
[ExcludeFromDocs]
public static bool CheckCapsule(Vector3 start, Vector3 end, float radius)
Parameters
Returns
|
Improve this Doc
View Source
CheckCapsule(Vector3, Vector3, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool CheckCapsule(Vector3 start, Vector3 end, float radius, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CheckCapsule(Vector3, Vector3, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool CheckCapsule(Vector3 start, Vector3 end, float radius, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
CheckSphere(Vector3, Single)
Declaration
[ExcludeFromDocs]
public static bool CheckSphere(Vector3 position, float radius)
Parameters
Returns
|
Improve this Doc
View Source
CheckSphere(Vector3, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool CheckSphere(Vector3 position, float radius, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
CheckSphere(Vector3, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool CheckSphere(Vector3 position, float radius, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
ClosestPoint(Vector3, Collider, Vector3, Quaternion)
Declaration
public static Vector3 ClosestPoint(Vector3 point, Collider collider, Vector3 position, Quaternion rotation)
Parameters
Returns
|
Improve this Doc
View Source
ComputePenetration(Collider, Vector3, Quaternion, Collider, Vector3, Quaternion, out Vector3, out Single)
Declaration
public static bool ComputePenetration(Collider colliderA, Vector3 positionA, Quaternion rotationA, Collider colliderB, Vector3 positionB, Quaternion rotationB, out Vector3 direction, out float distance)
Parameters
Returns
GetIgnoreLayerCollision(Int32, Int32)
Declaration
public static bool GetIgnoreLayerCollision(int layer1, int layer2)
Parameters
Returns
|
Improve this Doc
View Source
IgnoreCollision(Collider, Collider)
Declaration
[ExcludeFromDocs]
public static void IgnoreCollision(Collider collider1, Collider collider2)
Parameters
IgnoreCollision(Collider, Collider, Boolean)
Declaration
public static void IgnoreCollision(Collider collider1, Collider 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
IgnoreLayerCollision(Int32, Int32, Boolean)
Declaration
public static void IgnoreLayerCollision(int layer1, int layer2, [DefaultValue("true")] bool ignore)
Parameters
|
Improve this Doc
View Source
Linecast(Vector3, Vector3)
Declaration
[ExcludeFromDocs]
public static bool Linecast(Vector3 start, Vector3 end)
Parameters
Returns
|
Improve this Doc
View Source
Linecast(Vector3, Vector3, Int32)
Declaration
[ExcludeFromDocs]
public static bool Linecast(Vector3 start, Vector3 end, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
Linecast(Vector3, Vector3, Int32, QueryTriggerInteraction)
Declaration
public static bool Linecast(Vector3 start, Vector3 end, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
Linecast(Vector3, Vector3, out RaycastHit)
Declaration
[ExcludeFromDocs]
public static bool Linecast(Vector3 start, Vector3 end, out RaycastHit hitInfo)
Parameters
Returns
|
Improve this Doc
View Source
Linecast(Vector3, Vector3, out RaycastHit, Int32)
Declaration
[ExcludeFromDocs]
public static bool Linecast(Vector3 start, Vector3 end, out RaycastHit hitInfo, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
Linecast(Vector3, Vector3, out RaycastHit, Int32, QueryTriggerInteraction)
Declaration
public static bool Linecast(Vector3 start, Vector3 end, out RaycastHit hitInfo, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBox(Vector3, Vector3)
Declaration
[ExcludeFromDocs]
public static Collider[] OverlapBox(Vector3 center, Vector3 halfExtents)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBox(Vector3, Vector3, Quaternion)
Declaration
[ExcludeFromDocs]
public static Collider[] OverlapBox(Vector3 center, Vector3 halfExtents, Quaternion orientation)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBox(Vector3, Vector3, Quaternion, Int32)
Declaration
[ExcludeFromDocs]
public static Collider[] OverlapBox(Vector3 center, Vector3 halfExtents, Quaternion orientation, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBox(Vector3, Vector3, Quaternion, Int32, QueryTriggerInteraction)
Declaration
public static Collider[] OverlapBox(Vector3 center, Vector3 halfExtents, [DefaultValue("Quaternion.identity")] Quaternion orientation, [DefaultValue("AllLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxNonAlloc(Vector3, Vector3, Collider[])
Declaration
[ExcludeFromDocs]
public static int OverlapBoxNonAlloc(Vector3 center, Vector3 halfExtents, Collider[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxNonAlloc(Vector3, Vector3, Collider[], Quaternion)
Declaration
[ExcludeFromDocs]
public static int OverlapBoxNonAlloc(Vector3 center, Vector3 halfExtents, Collider[] results, Quaternion orientation)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxNonAlloc(Vector3, Vector3, Collider[], Quaternion, Int32)
Declaration
[ExcludeFromDocs]
public static int OverlapBoxNonAlloc(Vector3 center, Vector3 halfExtents, Collider[] results, Quaternion orientation, int mask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapBoxNonAlloc(Vector3, Vector3, Collider[], Quaternion, Int32, QueryTriggerInteraction)
Declaration
public static int OverlapBoxNonAlloc(Vector3 center, Vector3 halfExtents, Collider[] results, [DefaultValue("Quaternion.identity")] Quaternion orientation, [DefaultValue("AllLayers")] int mask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsule(Vector3, Vector3, Single)
Declaration
[ExcludeFromDocs]
public static Collider[] OverlapCapsule(Vector3 point0, Vector3 point1, float radius)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsule(Vector3, Vector3, Single, Int32)
Declaration
[ExcludeFromDocs]
public static Collider[] OverlapCapsule(Vector3 point0, Vector3 point1, float radius, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsule(Vector3, Vector3, Single, Int32, QueryTriggerInteraction)
Declaration
public static Collider[] OverlapCapsule(Vector3 point0, Vector3 point1, float radius, [DefaultValue("AllLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsuleNonAlloc(Vector3, Vector3, Single, Collider[])
Declaration
[ExcludeFromDocs]
public static int OverlapCapsuleNonAlloc(Vector3 point0, Vector3 point1, float radius, Collider[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsuleNonAlloc(Vector3, Vector3, Single, Collider[], Int32)
Declaration
[ExcludeFromDocs]
public static int OverlapCapsuleNonAlloc(Vector3 point0, Vector3 point1, float radius, Collider[] results, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapCapsuleNonAlloc(Vector3, Vector3, Single, Collider[], Int32, QueryTriggerInteraction)
Declaration
public static int OverlapCapsuleNonAlloc(Vector3 point0, Vector3 point1, float radius, Collider[] results, [DefaultValue("AllLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
OverlapSphere(Vector3, Single)
Declaration
[ExcludeFromDocs]
public static Collider[] OverlapSphere(Vector3 position, float radius)
Parameters
Returns
|
Improve this Doc
View Source
OverlapSphere(Vector3, Single, Int32)
Declaration
[ExcludeFromDocs]
public static Collider[] OverlapSphere(Vector3 position, float radius, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapSphere(Vector3, Single, Int32, QueryTriggerInteraction)
Declaration
public static Collider[] OverlapSphere(Vector3 position, float radius, [DefaultValue("AllLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
OverlapSphereNonAlloc(Vector3, Single, Collider[])
Declaration
[ExcludeFromDocs]
public static int OverlapSphereNonAlloc(Vector3 position, float radius, Collider[] results)
Parameters
Returns
|
Improve this Doc
View Source
OverlapSphereNonAlloc(Vector3, Single, Collider[], Int32)
Declaration
[ExcludeFromDocs]
public static int OverlapSphereNonAlloc(Vector3 position, float radius, Collider[] results, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
OverlapSphereNonAlloc(Vector3, Single, Collider[], Int32, QueryTriggerInteraction)
Declaration
public static int OverlapSphereNonAlloc(Vector3 position, float radius, Collider[] results, [DefaultValue("AllLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Ray)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Ray ray)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
Returns
|
Improve this Doc
View Source
Raycast(Ray, Single)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Ray ray, float maxDistance)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
Single |
maxDistance |
|
Returns
|
Improve this Doc
View Source
Raycast(Ray, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Ray ray, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Ray, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool Raycast(Ray ray, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Ray, out RaycastHit)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Ray ray, out RaycastHit hitInfo)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Ray, out RaycastHit, Single)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Ray ray, out RaycastHit hitInfo, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Ray, out RaycastHit, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Ray ray, out RaycastHit hitInfo, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Ray, out RaycastHit, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool Raycast(Ray ray, out RaycastHit hitInfo, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector3, Vector3)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Vector3 origin, Vector3 direction)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector3, Vector3, Single)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Vector3 origin, Vector3 direction, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector3, Vector3, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Vector3 origin, Vector3 direction, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector3, Vector3, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool Raycast(Vector3 origin, Vector3 direction, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector3, Vector3, out RaycastHit)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Vector3 origin, Vector3 direction, out RaycastHit hitInfo)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector3, Vector3, out RaycastHit, Single)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Vector3 origin, Vector3 direction, out RaycastHit hitInfo, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector3, Vector3, out RaycastHit, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool Raycast(Vector3 origin, Vector3 direction, out RaycastHit hitInfo, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
Raycast(Vector3, Vector3, out RaycastHit, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool Raycast(Vector3 origin, Vector3 direction, out RaycastHit hitInfo, float maxDistance, int layerMask, QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
RaycastAll(Ray)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] RaycastAll(Ray ray)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
Returns
|
Improve this Doc
View Source
RaycastAll(Ray, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] RaycastAll(Ray ray, float maxDistance)
Parameters
Type |
Name |
Description |
Ray |
ray |
|
Single |
maxDistance |
|
Returns
|
Improve this Doc
View Source
RaycastAll(Ray, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] RaycastAll(Ray ray, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
RaycastAll(Ray, Single, Int32, QueryTriggerInteraction)
Declaration
public static RaycastHit[] RaycastAll(Ray ray, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
RaycastAll(Vector3, Vector3)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] RaycastAll(Vector3 origin, Vector3 direction)
Parameters
Returns
|
Improve this Doc
View Source
RaycastAll(Vector3, Vector3, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] RaycastAll(Vector3 origin, Vector3 direction, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
RaycastAll(Vector3, Vector3, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] RaycastAll(Vector3 origin, Vector3 direction, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
RaycastAll(Vector3, Vector3, Single, Int32, QueryTriggerInteraction)
Declaration
public static RaycastHit[] RaycastAll(Vector3 origin, Vector3 direction, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Ray, RaycastHit[])
Declaration
[ExcludeFromDocs]
public static int RaycastNonAlloc(Ray ray, RaycastHit[] results)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Ray, RaycastHit[], Single)
Declaration
[ExcludeFromDocs]
public static int RaycastNonAlloc(Ray ray, RaycastHit[] results, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Ray, RaycastHit[], Single, Int32)
Declaration
[ExcludeFromDocs]
public static int RaycastNonAlloc(Ray ray, RaycastHit[] results, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Ray, RaycastHit[], Single, Int32, QueryTriggerInteraction)
Declaration
public static int RaycastNonAlloc(Ray ray, RaycastHit[] results, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Vector3, Vector3, RaycastHit[])
Declaration
[ExcludeFromDocs]
public static int RaycastNonAlloc(Vector3 origin, Vector3 direction, RaycastHit[] results)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Vector3, Vector3, RaycastHit[], Single)
Declaration
[ExcludeFromDocs]
public static int RaycastNonAlloc(Vector3 origin, Vector3 direction, RaycastHit[] results, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Vector3, Vector3, RaycastHit[], Single, Int32)
Declaration
[ExcludeFromDocs]
public static int RaycastNonAlloc(Vector3 origin, Vector3 direction, RaycastHit[] results, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
RaycastNonAlloc(Vector3, Vector3, RaycastHit[], Single, Int32, QueryTriggerInteraction)
Declaration
public static int RaycastNonAlloc(Vector3 origin, Vector3 direction, RaycastHit[] results, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
RebuildBroadphaseRegions(Bounds, Int32)
Declaration
public static void RebuildBroadphaseRegions(Bounds worldBounds, int subdivisions)
Parameters
Type |
Name |
Description |
Bounds |
worldBounds |
|
Int32 |
subdivisions |
|
|
Improve this Doc
View Source
Simulate(Single)
Declaration
public static void Simulate(float step)
Parameters
Type |
Name |
Description |
Single |
step |
|
|
Improve this Doc
View Source
SphereCast(Ray, Single)
Declaration
[ExcludeFromDocs]
public static bool SphereCast(Ray ray, float radius)
Parameters
Returns
|
Improve this Doc
View Source
SphereCast(Ray, Single, Single)
Declaration
[ExcludeFromDocs]
public static bool SphereCast(Ray ray, float radius, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
SphereCast(Ray, Single, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool SphereCast(Ray ray, float radius, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
SphereCast(Ray, Single, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool SphereCast(Ray ray, float radius, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
SphereCast(Ray, Single, out RaycastHit)
Declaration
[ExcludeFromDocs]
public static bool SphereCast(Ray ray, float radius, out RaycastHit hitInfo)
Parameters
Returns
|
Improve this Doc
View Source
SphereCast(Ray, Single, out RaycastHit, Single)
Declaration
[ExcludeFromDocs]
public static bool SphereCast(Ray ray, float radius, out RaycastHit hitInfo, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
SphereCast(Ray, Single, out RaycastHit, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool SphereCast(Ray ray, float radius, out RaycastHit hitInfo, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
SphereCast(Ray, Single, out RaycastHit, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool SphereCast(Ray ray, float radius, out RaycastHit hitInfo, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
SphereCast(Vector3, Single, Vector3, out RaycastHit)
Declaration
[ExcludeFromDocs]
public static bool SphereCast(Vector3 origin, float radius, Vector3 direction, out RaycastHit hitInfo)
Parameters
Returns
|
Improve this Doc
View Source
SphereCast(Vector3, Single, Vector3, out RaycastHit, Single)
Declaration
[ExcludeFromDocs]
public static bool SphereCast(Vector3 origin, float radius, Vector3 direction, out RaycastHit hitInfo, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
SphereCast(Vector3, Single, Vector3, out RaycastHit, Single, Int32)
Declaration
[ExcludeFromDocs]
public static bool SphereCast(Vector3 origin, float radius, Vector3 direction, out RaycastHit hitInfo, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
SphereCast(Vector3, Single, Vector3, out RaycastHit, Single, Int32, QueryTriggerInteraction)
Declaration
public static bool SphereCast(Vector3 origin, float radius, Vector3 direction, out RaycastHit hitInfo, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastAll(Ray, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] SphereCastAll(Ray ray, float radius)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastAll(Ray, Single, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] SphereCastAll(Ray ray, float radius, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastAll(Ray, Single, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] SphereCastAll(Ray ray, float radius, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastAll(Ray, Single, Single, Int32, QueryTriggerInteraction)
Declaration
public static RaycastHit[] SphereCastAll(Ray ray, float radius, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastAll(Vector3, Single, Vector3)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] SphereCastAll(Vector3 origin, float radius, Vector3 direction)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastAll(Vector3, Single, Vector3, Single)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] SphereCastAll(Vector3 origin, float radius, Vector3 direction, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastAll(Vector3, Single, Vector3, Single, Int32)
Declaration
[ExcludeFromDocs]
public static RaycastHit[] SphereCastAll(Vector3 origin, float radius, Vector3 direction, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastAll(Vector3, Single, Vector3, Single, Int32, QueryTriggerInteraction)
Declaration
public static RaycastHit[] SphereCastAll(Vector3 origin, float radius, Vector3 direction, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastNonAlloc(Ray, Single, RaycastHit[])
Declaration
[ExcludeFromDocs]
public static int SphereCastNonAlloc(Ray ray, float radius, RaycastHit[] results)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastNonAlloc(Ray, Single, RaycastHit[], Single)
Declaration
[ExcludeFromDocs]
public static int SphereCastNonAlloc(Ray ray, float radius, RaycastHit[] results, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastNonAlloc(Ray, Single, RaycastHit[], Single, Int32)
Declaration
[ExcludeFromDocs]
public static int SphereCastNonAlloc(Ray ray, float radius, RaycastHit[] results, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastNonAlloc(Ray, Single, RaycastHit[], Single, Int32, QueryTriggerInteraction)
Declaration
public static int SphereCastNonAlloc(Ray ray, float radius, RaycastHit[] results, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastNonAlloc(Vector3, Single, Vector3, RaycastHit[])
Declaration
[ExcludeFromDocs]
public static int SphereCastNonAlloc(Vector3 origin, float radius, Vector3 direction, RaycastHit[] results)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastNonAlloc(Vector3, Single, Vector3, RaycastHit[], Single)
Declaration
[ExcludeFromDocs]
public static int SphereCastNonAlloc(Vector3 origin, float radius, Vector3 direction, RaycastHit[] results, float maxDistance)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastNonAlloc(Vector3, Single, Vector3, RaycastHit[], Single, Int32)
Declaration
[ExcludeFromDocs]
public static int SphereCastNonAlloc(Vector3 origin, float radius, Vector3 direction, RaycastHit[] results, float maxDistance, int layerMask)
Parameters
Returns
|
Improve this Doc
View Source
SphereCastNonAlloc(Vector3, Single, Vector3, RaycastHit[], Single, Int32, QueryTriggerInteraction)
Declaration
public static int SphereCastNonAlloc(Vector3 origin, float radius, Vector3 direction, RaycastHit[] results, [DefaultValue("Mathf.Infinity")] float maxDistance, [DefaultValue("DefaultRaycastLayers")] int layerMask, [DefaultValue("QueryTriggerInteraction.UseGlobal")] QueryTriggerInteraction queryTriggerInteraction)
Parameters
Returns
Declaration
public static void SyncTransforms()
Extension Methods