Version: 2022.2

OverlapCapsuleCommandConstructor

切换到手册
public OverlapCapsuleCommand (Vector3 point0, Vector3 point1, float radius, QueryParameters queryParameters);

参数

point0 胶囊体在 start 处的球体中心。
point1 胶囊体在 end 处的球体中心。
radius 胶囊体的半径。
queryParameters Structure for specifying additional parameters for a batch query such as layer mask or hit triggers.

描述

Create an OverlapCapsuleCommand.

The query is run in the default physics scene.


public OverlapCapsuleCommand (PhysicsScene physicsScene, Vector3 point0, Vector3 point1, float radius, QueryParameters queryParameters);

参数

physicsScene The physics scene this command is run in.
point0 胶囊体在 start 处的球体中心。
point1 胶囊体在 end 处的球体中心。
radius 胶囊体的半径。
queryParameters Structure for specifying additional parameters for a batch query such as layer mask or hit triggers.

描述

Create an OverlapCapsuleCommand.