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.
| |||
void | OnCharacterTrigger3D (Hit other) | ||
Called for all contacts with a trigger collider. Not affected by NetworkCharacterController.Configuration.AllowedPenetration.
| |||
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.
bool OnCharacterCollision3D | ( | Hit | other | ) |
Called for all contacts with a non-trigger collider that penetrates more than NetworkCharacterController.Configuration.AllowedPenetration.
other | NetworkCharacterController.Hit data about the collision |
void OnCharacterTrigger3D | ( | Hit | other | ) |
Called for all contacts with a trigger collider. Not affected by NetworkCharacterController.Configuration.AllowedPenetration.
other | NetworkCharacterController.Hit data about the trigger collision |