# Create3DPhysicsCharacterController

## Description

Creates a 3D physics Character Controller for the model. Character controller can be created on the X,Yor 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 the half the amount that the model is off set from origin.
- objOrientationVec3 - Used to line up the rotation your model with the character controller.
- crouchScale - precentage amount to scale the crouched capsule to fit crouched model.