CreateProxy(PhysicsAABB, PhysicsMask, PhysicsHandle)
Create a space proxy.
阅读时间1 分钟最后更新于 1 个月前
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. |