contactEvents
Controls whether this shape produces contact events which can be retrieved after the simulation has completed. Any contact events can be used to call the assigned PhysicsShape.callbackTarget. A contact event is produced if either shapes involved have contactEvents enabled. A contact event will produce a PhysicsCallbacks.IContactCallback to the PhysicsShape.callbackTarget for both shapes involved.
読み終わるまでの所要時間 1 分最終更新 21日前
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public bool contactEvents { get; set; }