CapsuleCollider¶
类位于 InfEngine.components.builtin
继承自: Collider
描述¶
胶囊碰撞体。角色控制器的好搭档。
description
属性¶
| 名称 | 类型 | 描述 |
|---|---|---|
| radius | float |
胶囊半径。 |
| height | float |
胶囊高度。 |
| direction | int |
The axis direction of the capsule (0=X, 1=Y, 2=Z). |
properties
生命周期方法¶
| 方法 | 描述 |
|---|---|
on_draw_gizmos_selected() → None |
Draw the collider wireframe when selected in the editor. |
lifecycle_methods
示例¶
example
另请参阅¶
see_also