Class BoxColliderExtensions
UnityEngine.BoxCollider Based Extension Methods
Inheritance
System.Object
BoxColliderExtensions
Namespace: GDX
Syntax
[VisualScriptingCompatible((short)2)]
public static class BoxColliderExtensions
Methods
| Improve this Doc View SourceContainsPosition(BoxCollider, Vector3)
Is the worldPosition inside of the targetBoxCollider?
Declaration
public static bool ContainsPosition(this BoxCollider targetBoxCollider, Vector3 worldPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.BoxCollider | targetBoxCollider | The UnityEngine.BoxCollider to use for evaluation. |
| UnityEngine.Vector3 | worldPosition | A UnityEngine.Vector3 point in world space. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true/false if the world position is contained within the |
Exceptions
| Type | Condition |
|---|---|
| UnsupportedRuntimeException | Not supported on DOTS Runtime. |