Photon Quantum 3.0.0

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

The interface receives the interaction callbacks from the character controller system. More...

Inherited by Quantum.CharacterControllerMovementTestSystem, and Quantum.PhysicsBenchmark.

Public Member Functions

Boolean OnCharacterCollision2D (FrameBase frame, EntityRef character, Physics2D.Hit hit)
 Allows to receive a hit as result of the collision with other colliders. More...
 
void OnCharacterTrigger2D (FrameBase frame, EntityRef character, Physics2D.Hit hit)
 Allows to receive a hit as result of the collision with other trigger colliders. More...
 

Detailed Description

The interface receives the interaction callbacks from the character controller system.

Member Function Documentation

◆ OnCharacterCollision2D()

Boolean Quantum.IKCCCallbacks2D.OnCharacterCollision2D ( FrameBase  frame,
EntityRef  character,
Physics2D.Hit  hit 
)

Allows to receive a hit as result of the collision with other colliders.

Parameters
frameThe current frame.
characterThe entity of the character.
hitThe Physics2D.Hit with the collision info.
Returns
True if the collision should be considered. False otherwise.

◆ OnCharacterTrigger2D()

void Quantum.IKCCCallbacks2D.OnCharacterTrigger2D ( FrameBase  frame,
EntityRef  character,
Physics2D.Hit  hit 
)

Allows to receive a hit as result of the collision with other trigger colliders.

Returns