Version: 2023.2

OverlapSphereCommandConstructor

切换到手册
public OverlapSphereCommand (Vector3 point, float radius, QueryParameters queryParameters);

参数

point 该球体的中心。
radius 该球体的半径。
queryParameters Structure for specifying additional parameters for a batch query such as layer mask or hit triggers.

描述

Create an OverlapSphereCommand.

This query is run in the default physics scene.


public OverlapSphereCommand (PhysicsScene physicsScene, Vector3 point, float radius, QueryParameters queryParameters);

参数

physicsScene The physics scene to run the overlap sphere query in.
point 该球体的中心。
radius 该球体的半径。
queryParameters Structure for specifying additional parameters for a batch query such as layer mask or hit triggers.

描述

Create an OverlapSphereCommand.