Photon Fusion 1.1.11

Public Member Functions | List of all members
NetworkCharacterController.ICallbacks Interface Reference

Collision and trigger callback interface that can optionally be passed to the movement query. Common uses: bypass a contact, apply a contact force to the target (can also be achieved just by adding a kinematic Rigidbody to the Character Controller. More...

Public Member Functions

bool OnCharacterCollision3D (Hit other)
 Called for all contacts with a non-trigger collider that penetrates more than NetworkCharacterController.Configuration.AllowedPenetration.

Parameters
otherNetworkCharacterController.Hit data about the collision
More...
 
void OnCharacterTrigger3D (Hit other)
 Called for all contacts with a trigger collider. Not affected by NetworkCharacterController.Configuration.AllowedPenetration.

Parameters
otherNetworkCharacterController.Hit data about the trigger collision
More...
 

Detailed Description

Collision and trigger callback interface that can optionally be passed to the movement query. Common uses: bypass a contact, apply a contact force to the target (can also be achieved just by adding a kinematic Rigidbody to the Character Controller.

Member Function Documentation

◆ OnCharacterCollision3D()

bool OnCharacterCollision3D ( Hit  other)

Called for all contacts with a non-trigger collider that penetrates more than NetworkCharacterController.Configuration.AllowedPenetration.

Parameters
otherNetworkCharacterController.Hit data about the collision

◆ OnCharacterTrigger3D()

void OnCharacterTrigger3D ( Hit  other)

Called for all contacts with a trigger collider. Not affected by NetworkCharacterController.Configuration.AllowedPenetration.

Parameters
otherNetworkCharacterController.Hit data about the trigger collision