Quantum 3 3.0.5

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

Interface for receiving 2D collision callbacks More...

Inheritance diagram for Quantum.Core.ICollisionCallbacks2D:
Quantum.Core.PhysicsSystem2D

Public Member Functions

void OnCollision2D (FrameBase f, CollisionInfo2D info)
 Raised when two non-trigger 2D colliders collide. Raised every frame while the collision lasts. More...
 
void OnCollisionEnter2D (FrameBase f, CollisionInfo2D info)
 Raised on the frame when two non-trigger 2D colliders start colliding. More...
 
void OnCollisionExit2D (FrameBase f, ExitInfo2D info)
 Raised on the first frame when two non-trigger 2D colliders are detected as no longer colliding. More...
 
void OnTrigger2D (FrameBase f, TriggerInfo2D info)
 Raised when two 2D colliders collide if exactly one of them is a trigger collider. Raised every frame while the collision lasts. More...
 
void OnTriggerEnter2D (FrameBase f, TriggerInfo2D info)
 Raised on the first frame when two 2D colliders start colliding if exactly one of them is a trigger collider. More...
 
void OnTriggerExit2D (FrameBase f, ExitInfo2D info)
 Raised on the first frame when two 2D colliders are detected as no longer colliding if exactly one of them is a trigger collider. More...
 

Detailed Description

Interface for receiving 2D collision callbacks

Member Function Documentation

◆ OnCollision2D()

void Quantum.Core.ICollisionCallbacks2D.OnCollision2D ( FrameBase  f,
CollisionInfo2D  info 
)

Raised when two non-trigger 2D colliders collide. Raised every frame while the collision lasts.

Parameters
fCurrent frame instance.
infoDetails about the collision.

Implemented in Quantum.Core.PhysicsSystem2D.

◆ OnCollisionEnter2D()

void Quantum.Core.ICollisionCallbacks2D.OnCollisionEnter2D ( FrameBase  f,
CollisionInfo2D  info 
)

Raised on the frame when two non-trigger 2D colliders start colliding.

Parameters
fCurrent frame instance.
infoDetails about the collision.

Implemented in Quantum.Core.PhysicsSystem2D.

◆ OnCollisionExit2D()

void Quantum.Core.ICollisionCallbacks2D.OnCollisionExit2D ( FrameBase  f,
ExitInfo2D  info 
)

Raised on the first frame when two non-trigger 2D colliders are detected as no longer colliding.

Parameters
fCurrent frame instance.
infoDetails about the collision.

Implemented in Quantum.Core.PhysicsSystem2D.

◆ OnTrigger2D()

void Quantum.Core.ICollisionCallbacks2D.OnTrigger2D ( FrameBase  f,
TriggerInfo2D  info 
)

Raised when two 2D colliders collide if exactly one of them is a trigger collider. Raised every frame while the collision lasts.

Parameters
fCurrent frame instance.
infoDetails about the collision.

Implemented in Quantum.Core.PhysicsSystem2D.

◆ OnTriggerEnter2D()

void Quantum.Core.ICollisionCallbacks2D.OnTriggerEnter2D ( FrameBase  f,
TriggerInfo2D  info 
)

Raised on the first frame when two 2D colliders start colliding if exactly one of them is a trigger collider.

Parameters
fCurrent frame instance.
infoDetails about the collision.

Implemented in Quantum.Core.PhysicsSystem2D.

◆ OnTriggerExit2D()

void Quantum.Core.ICollisionCallbacks2D.OnTriggerExit2D ( FrameBase  f,
ExitInfo2D  info 
)

Raised on the first frame when two 2D colliders are detected as no longer colliding if exactly one of them is a trigger collider.

Parameters
fCurrent frame instance.
infoDetails about the collision.

Implemented in Quantum.Core.PhysicsSystem2D.