ドキュメント

Unity Engine

Unity Engine

PhysicsCallbacks.IContactCallback

An interface that when implemented by a Object, can be called as a target by PhysicsWorld.SendContactCallbacks.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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.