기술 자료

Unity Engine

Unity Engine

CreateProxy(PhysicsAABB, PhysicsMask, PhysicsHandle)

Create a space proxy.
읽는 시간 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.

categories

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.

userHandle

The custom user handle associated with the proxy. On a world-bound space this must be a live shape in the bound world.

Returns

Type

Description

ProxyHandleThe created proxy handle used to refer to the proxy.