CreateProxy(PhysicsAABB, PhysicsMask, PhysicsHandle)
Create a space proxy.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public PhysicsSpace.ProxyHandle CreateProxy(PhysicsAABB aabb, PhysicsMask categories, PhysicsHandle userHandle)
Parameters
The AABB the proxy covers.
The categories as a physics mask associated with the proxy. This can be used when querying the space. If not used, it should be PhysicsMask.All.
The custom user handle associated with the proxy.
Returns
Type | Description |
|---|---|
| ProxyHandle | The created proxy handle used to refer to the proxy. |