BoxCollider 盒碰撞器

class in UnityEngine / Inherits from: Collider

Description 描述

A box-shaped primitive collider.

盒形状的碰撞体。

Variables 变量

centerThe center of the box, measured in the object's local space.
以对象的局部坐标空间计算的盒的中心。
sizeThe size of the box, measured in the object's local space.
以对象的局部坐标空间计算的盒的大小。