struct ControllerControllerCollision

Contains data about a collision between two character controllers.

Public

Fields

Controller

HCharacterController Controller

Component of the controller that was touched.

Can be null if the controller has no component parent, in which case check #controllerRaw.

ControllerRaw

CharacterController * ControllerRaw

Controller that was touched.

Position

Vector3 Position

Contact position.

Normal

Vector3 Normal

Contact normal.

MotionDir

Vector3 MotionDir

Direction of motion after the hit.

MotionAmount

float MotionAmount

Magnitude of motion after the hit.