| origin | 球体投射的起点。 |
| radius | 投射球体的半径。 |
| direction | 球体投射的方向。 |
| distance | 投射应检查碰撞的最大距离。 |
| layerMask | 用于在投射球体时有选择地忽略碰撞体的 LayerMask。 |
创建 SpherecastCommand。
The command is run in the default physics scene.
| physicsScene | The physics scene to run the command in. |
| origin | 球体投射的起点。 |
| radius | 投射球体的半径。 |
| direction | 球体投射的方向。 |
| distance | 投射应检查碰撞的最大距离。 |
| layerMask | 用于在投射球体时有选择地忽略碰撞体的 LayerMask。 |
创建 SpherecastCommand。