Class PhysicsExtensions
Inheritance
PhysicsExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: NeoFPS.dll
Syntax
public static class PhysicsExtensions
Methods
Declaration
public static bool BoxCastFiltered(Vector3 center, Vector3 halfExtents, Vector3 direction, Quaternion orientation, float maxDistance = default(float), int layerMask = default(int), Transform ignoreRoot = null, QueryTriggerInteraction queryTriggerInteraction = null)
Parameters
| Type |
Name |
Description |
| Vector3 |
center |
|
| Vector3 |
halfExtents |
|
| Vector3 |
direction |
|
| Quaternion |
orientation |
|
| System.Single |
maxDistance |
|
| System.Int32 |
layerMask |
|
| Transform |
ignoreRoot |
|
| QueryTriggerInteraction |
queryTriggerInteraction |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool BoxCastNonAllocSingle(Vector3 center, Vector3 halfExtents, Vector3 direction, out RaycastHit hit, Quaternion orientation, float maxDistance = default(float), int layerMask = default(int), Transform ignoreRoot = null, QueryTriggerInteraction queryTriggerInteraction = null)
Parameters
| Type |
Name |
Description |
| Vector3 |
center |
|
| Vector3 |
halfExtents |
|
| Vector3 |
direction |
|
| RaycastHit |
hit |
|
| Quaternion |
orientation |
|
| System.Single |
maxDistance |
|
| System.Int32 |
layerMask |
|
| Transform |
ignoreRoot |
|
| QueryTriggerInteraction |
queryTriggerInteraction |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool CapsuleCastFiltered(Vector3 point1, Vector3 point2, float radius, Vector3 direction, float maxDistance = default(float), int layerMask = default(int), Transform ignoreRoot = null, QueryTriggerInteraction queryTriggerInteraction = null)
Parameters
| Type |
Name |
Description |
| Vector3 |
point1 |
|
| Vector3 |
point2 |
|
| System.Single |
radius |
|
| Vector3 |
direction |
|
| System.Single |
maxDistance |
|
| System.Int32 |
layerMask |
|
| Transform |
ignoreRoot |
|
| QueryTriggerInteraction |
queryTriggerInteraction |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool CapsuleCastNonAllocSingle(Vector3 point1, Vector3 point2, float radius, Vector3 direction, out RaycastHit hit, float maxDistance = default(float), int layerMask = default(int), Transform ignoreRoot = null, QueryTriggerInteraction queryTriggerInteraction = null)
Parameters
| Type |
Name |
Description |
| Vector3 |
point1 |
|
| Vector3 |
point2 |
|
| System.Single |
radius |
|
| Vector3 |
direction |
|
| RaycastHit |
hit |
|
| System.Single |
maxDistance |
|
| System.Int32 |
layerMask |
|
| Transform |
ignoreRoot |
|
| QueryTriggerInteraction |
queryTriggerInteraction |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool CapsuleCastNonAllocSingleFiltered(Vector3 point1, Vector3 point2, float radius, Vector3 direction, out RaycastHit hit, List<Transform> m_IgnoreTransforms, float maxDistance = default(float), int layerMask = default(int), QueryTriggerInteraction queryTriggerInteraction = null)
Parameters
| Type |
Name |
Description |
| Vector3 |
point1 |
|
| Vector3 |
point2 |
|
| System.Single |
radius |
|
| Vector3 |
direction |
|
| RaycastHit |
hit |
|
| System.Collections.Generic.List<Transform> |
m_IgnoreTransforms |
|
| System.Single |
maxDistance |
|
| System.Int32 |
layerMask |
|
| QueryTriggerInteraction |
queryTriggerInteraction |
|
Returns
| Type |
Description |
| System.Boolean |
|
ContainsLayer(LayerMask, Int32)
Declaration
public static bool ContainsLayer(this LayerMask mask, int index)
Parameters
| Type |
Name |
Description |
| LayerMask |
mask |
|
| System.Int32 |
index |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool RaycastFiltered(Ray ray, float maxDistance = default(float), int layerMask = default(int), Transform ignoreRoot = null, QueryTriggerInteraction queryTriggerInteraction = null)
Parameters
| Type |
Name |
Description |
| Ray |
ray |
|
| System.Single |
maxDistance |
|
| System.Int32 |
layerMask |
|
| Transform |
ignoreRoot |
|
| QueryTriggerInteraction |
queryTriggerInteraction |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool RaycastNonAllocSingle(Ray ray, out RaycastHit hit, float maxDistance = default(float), int layerMask = default(int), Transform ignoreRoot = null, QueryTriggerInteraction queryTriggerInteraction = null)
Parameters
| Type |
Name |
Description |
| Ray |
ray |
|
| RaycastHit |
hit |
|
| System.Single |
maxDistance |
|
| System.Int32 |
layerMask |
|
| Transform |
ignoreRoot |
|
| QueryTriggerInteraction |
queryTriggerInteraction |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool SphereCastFiltered(Ray ray, float radius, float maxDistance = default(float), int layerMask = default(int), Transform ignoreRoot = null, QueryTriggerInteraction queryTriggerInteraction = null)
Parameters
| Type |
Name |
Description |
| Ray |
ray |
|
| System.Single |
radius |
|
| System.Single |
maxDistance |
|
| System.Int32 |
layerMask |
|
| Transform |
ignoreRoot |
|
| QueryTriggerInteraction |
queryTriggerInteraction |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool SphereCastNonAllocSingle(Ray ray, float radius, out RaycastHit hit, float maxDistance = default(float), int layerMask = default(int), Transform ignoreRoot = null, QueryTriggerInteraction queryTriggerInteraction = null)
Parameters
| Type |
Name |
Description |
| Ray |
ray |
|
| System.Single |
radius |
|
| RaycastHit |
hit |
|
| System.Single |
maxDistance |
|
| System.Int32 |
layerMask |
|
| Transform |
ignoreRoot |
|
| QueryTriggerInteraction |
queryTriggerInteraction |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool SphereCastNonAllocSingleFiltered(Ray ray, float radius, out RaycastHit hit, List<Transform> m_IgnoreTransforms, float maxDistance = default(float), int layerMask = default(int), QueryTriggerInteraction queryTriggerInteraction = null)
Parameters
| Type |
Name |
Description |
| Ray |
ray |
|
| System.Single |
radius |
|
| RaycastHit |
hit |
|
| System.Collections.Generic.List<Transform> |
m_IgnoreTransforms |
|
| System.Single |
maxDistance |
|
| System.Int32 |
layerMask |
|
| QueryTriggerInteraction |
queryTriggerInteraction |
|
Returns
| Type |
Description |
| System.Boolean |
|