format
typescript
CharacterController.centerclass: CharacterController
description
This value represents the center position of the character represented by the character controller.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Vector3 | The center point position of the character controller. |
code example
javascript
let obj = new GameObject();
let com = obj.AddComponent<CharacterController>(CharacterController);
com.center = new Vector3(0, 0, 10);
Debug.Log("CharacterController: center = ", com.center);