format
typescript
BoxCollider.centerclass: BoxCollider
description
The center point position of the box collider.
This value represents the center point position of the box collider in the local coordinate system of the game object.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Vector3 | Center point position |
code example
typescript
let obj = new GameObject();
let box = obj.AddComponent<BoxCollider>(BoxCollider);
box.center;