Skip to content

format

typescript
BoxCollider.center

class: 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_nametypedescription

reture

typedescription
Vector3Center point position

code example

typescript
let obj = new GameObject();
let box = obj.AddComponent<BoxCollider>(BoxCollider);
box.center;