# Create3DPhysicsCharacterController

## Description

Creates a 3D physics Character Controller for the model. Character controller can be created on the X, Y, or Z axis. For example a standing character would be on the Y axis. A lying down character could be on the X or Z. If the model has an offset from origin the objOffsetVec3 is neede to line up the character controller with the object. If the object does not face down the positive Z axis use the objOrientationVec3 to adjust. Crouch scale adjusts the crouch capsule size to fit the height of your crouched model.

## Definition

Create3DPhysicsCharacterController( objID, axis, objOffsetVec3, objOrientationVec3, crouchScale )

void agk::Create3DPhysicsCharacterController( UINT objID, int axis, int objOffsetVec3, int objOrientationVec3, float crouchScale )

## Parameters

- objID - object ID
- axis - 0 = X axis, 1= Y axis, 2 = Z axis,
- objOffsetVec3 - This vector is half the amount that the model is offset from origin.
- objOrientationVec3 - This vector is used to line up the rotation of your model with the character controller.
- crouchScale - Percentage amount to scale the crouched capsule to fit crouched model.