目录

Collider

Class Info

public class Collider extends Component

碰撞体组件。

Public Method Summary

Qualifier and Type

Method Name and Description

BoxShape

createBoxShape()

创建长方体碰撞体。

CapsuleShape

createCapsuleShape()

创建胶囊体碰撞体。

ConeShape

createConeShape()

创建圆锥体碰撞体。

CylinderShape

createCylinderShape()

创建圆柱体碰撞体。

PlaneShape

createPlaneShape()

创建平面碰撞体。

SphereShape

createSphereShape()

创建球体碰撞体。

static Collider.Descriptor

descriptor()

获取碰撞体组件描述符实例。

Public Methods

[h2]createBoxShape

Method

public BoxShape createBoxShape()

创建长方体碰撞体。

Returns

Type

Description

BoxShape

长方体实例。

[h2]createCapsuleShape

Method

public CapsuleShape createCapsuleShape()

创建胶囊体碰撞体。

Returns

Type

Description

CapsuleShape

胶囊体实例。

[h2]createConeShape

Method

public ConeShape createConeShape()

创建圆锥体碰撞体。

Returns

Type

Description

ConeShape

圆锥体实例。

[h2]createCylinderShape

Method

public CylinderShape createCylinderShape()

创建圆柱体碰撞体。

Returns

Type

Description

CylinderShape

圆柱体实例。

[h2]createPlaneShape

Method

public PlaneShape createPlaneShape()

创建平面碰撞体。

Returns

Type

Description

PlaneShape

平面实例。

[h2]createSphereShape

Method

public SphereShape createSphereShape()

创建球体碰撞体。

Returns

Type

Description

SphereShape

球体实例。

[h2]descriptor

Method

public static Collider.Descriptor descriptor()

获取碰撞体组件描述符实例。

Returns

Type

Description

Collider.Descriptor

碰撞体组件描述符实例。