기술 자료

Unity Engine

Unity Engine

PhysicsCallbacks.IContactCallback

An interface that when implemented, can be called as a target by PhysicsWorld.SendContactCallbacks.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Interface
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public interface PhysicsCallbacks.IContactCallback

Methods

Method

Description

OnContactBegin2DCalled when a PhysicsEvents.ContactBeginEvent for the object occurs. This will always be called on the main-thread after the simulation has finished.
OnContactEnd2DCalled when a PhysicsEvents.ContactEndEvent for the object occurs. This will always be called on the main-thread after the simulation has finished.