Class Info |
|---|
public class Collider extends Component 碰撞体组件。 |
Qualifier and Type | Method Name and Description |
|---|---|
| 创建长方体碰撞体。 | |
| 创建胶囊体碰撞体。 | |
| 创建圆锥体碰撞体。 | |
| 创建圆柱体碰撞体。 | |
| 创建平面碰撞体。 | |
| 创建球体碰撞体。 | |
static Collider.Descriptor | 获取碰撞体组件描述符实例。 |
Method |
|---|
public BoxShape createBoxShape() 创建长方体碰撞体。 |
Returns
Type | Description |
|---|---|
长方体实例。 |
Method |
|---|
public CapsuleShape createCapsuleShape() 创建胶囊体碰撞体。 |
Returns
Type | Description |
|---|---|
胶囊体实例。 |
Method |
|---|
public ConeShape createConeShape() 创建圆锥体碰撞体。 |
Returns
Type | Description |
|---|---|
圆锥体实例。 |
Method |
|---|
public CylinderShape createCylinderShape() 创建圆柱体碰撞体。 |
Returns
Type | Description |
|---|---|
圆柱体实例。 |
Method |
|---|
public PlaneShape createPlaneShape() 创建平面碰撞体。 |
Returns
Type | Description |
|---|---|
平面实例。 |
Method |
|---|
public SphereShape createSphereShape() 创建球体碰撞体。 |
Returns
Type | Description |
|---|---|
球体实例。 |
Method |
|---|
public static Collider.Descriptor descriptor() 获取碰撞体组件描述符实例。 |
Returns
Type | Description |
|---|---|
碰撞体组件描述符实例。 |