Photon Quantum 3.0.0

Public Member Functions | List of all members
Quantum.ISignalOnTrigger2D Interface Reference

Interface for receiving callbacks once per frame while a non-trigger and a trigger 2D colliders are touching. More...

Inheritance diagram for Quantum.ISignalOnTrigger2D:
Quantum.ISignal

Public Member Functions

void OnTrigger2D (Frame f, TriggerInfo2D info)
 Called once per frame while a non-trigger and a trigger 2D colliders are touching. More...
 

Additional Inherited Members

- Properties inherited from Quantum.ISignal
Int32 RuntimeIndex [get]
 Index of the signal in the runtime. More...
 

Detailed Description

Interface for receiving callbacks once per frame while a non-trigger and a trigger 2D colliders are touching.

No collision is checked between two kinematic colliders that are both trigger or both non-trigger.

At least one of the entities involved in a collision must have the respective CallbackFlags set for the callback to be called.

See Quantum.Physics2D.PhysicsEngine2D.Api.SetCallbacks for setting the callbacks flags to an entity.