CapsulecastCommandConstructor

Switch to Manual
public CapsulecastCommand (Vector3 p1, Vector3 p2, float radius, Vector3 direction, float distance, int layerMask);

Parameters

p1胶囊体在 start 处的球体中心。
p2胶囊体在 end 处的球体中心。
radius胶囊体的半径。
directionThe direction of the capsule cast
distanceThe maximum length of the sweep.
layerMaskThe LayerMask that selectively ignores Colliders when casting a capsule.

Description

Creates a CapsulecastCommand.