Character Controller Flashcards
What is the Character Controller used for?
The Character Controller is mainly used for third person or first person player control that does not make use of Rigidbody physics
Properties of the Character Controller
Slope Limit. Limits the collider to only climb slopes that are less steep, in degrees, than the indicated value
StepOffset. The character will step up a stair only if it is closer to the ground than the indicated value. This should not be greater than the Character Controllers height or it will generate an error.
Skin Width. Two collider can penetrate each other as deep as their Skin Width. Larger Skin Widths reduce jitter. Low Skin Width can cause the character to get stuck. A good setting is to make this value 10% if the radius
Min move distance. If the Character tries to move below the indicated value, it will not move at all. This can be used to reduce jitter. In most situations this value should be left at 0
Radius. Length of the Capsule Colliers radius. The width of the collider
Height. The characters capsule collider height is. Changing this will scale the collider along the Y axie in both positive and negative directions
The Character Controller does not react to forces on its own and it does not automatically push rigidbodies away
That is true
You can apply forces to any object that it collides with via the OnCharacterControllerHit() function through scripting to make the Character Controller push Rigidbodies or objects
True
If you want your player to be affected by physics what should you use instead of the Character Controller
The Rigidbody function is better for physics
It is recommended to always use around 2 meters for a human like Character and the width and height can be modified to fit your characters mesh
That is true
The Center of the Capsule can be modified in case your pivot point is not at the expect center of the Character
True
Step offset should be around 0.1 and 0.4 for a 2 meter sized human as this can affect your character too
True
Slope limit should not be too small. Often using a value of 90 degrees works best.
True
Can the Character Controller climb up walls
No it cannot due to the Capsule shape
What is one of the most critical properties
The Skin Width
It is critical to get it right when tuning your character controller.
If you get stuck it is most likely because your skin width is too small
What does Skin Width do
Skin Width will let objects slightly penetrate the controller but it removes jitter and prevents it from getting stuck
It is good practice to keep your skin width at least greater than 0. 01 and more than 10 percent of the radius
What is the recommended min move distance
The recommended min move distance is 0
Character Controller tips and hints
Adjust your skin width if your character is getting stuck frequently
The character controller can affect objects using physics if you write your own scripts
The Character Controller can not be affected by objects through physics
Changing the character controller properties in the inspector will recreate the