| p1 | 胶囊体在 start 处的球体中心。 |
| p2 | 胶囊体在 end 处的球体中心。 |
| radius | 胶囊体的半径。 |
| direction | 胶囊体投射的方向。 |
| queryParameters | Structure for specifying additional parameters for a batch query such as layer mask, hit triggers and hit backfaces. |
| distance | 扫射的最大长度。 |
创建 CapsulecastCommand。
This command is run in the default physics scene.
| physicsScene | The physics scene to run the command in. |
| p1 | 胶囊体在 start 处的球体中心。 |
| p2 | 胶囊体在 end 处的球体中心。 |
| radius | 胶囊体的半径。 |
| direction | 胶囊体投射的方向。 |
| queryParameters | Structure for specifying additional parameters for a batch query such as layer mask, hit triggers and hit backfaces. |
| distance | 扫射的最大长度。 |
创建 CapsulecastCommand。
| p1 | 胶囊体在 start 处的球体中心。 |
| p2 | 胶囊体在 end 处的球体中心。 |
| radius | 胶囊体的半径。 |
| direction | 胶囊体投射的方向。 |
| distance | 扫射的最大长度。 |
| layerMask | 用于在投射胶囊体时有选择地忽略碰撞体的 LayerMask。 |
创建 CapsulecastCommand。
This command is run in the default physics scene.
| physicsScene | The physics scene to run the command in. |
| p1 | 胶囊体在 start 处的球体中心。 |
| p2 | 胶囊体在 end 处的球体中心。 |
| radius | 胶囊体的半径。 |
| direction | 胶囊体投射的方向。 |
| distance | 扫射的最大长度。 |
| layerMask | 用于在投射胶囊体时有选择地忽略碰撞体的 LayerMask。 |
创建 CapsulecastCommand。