CapsulecastCommand
Creates a CapsulecastCommand.
Read time 2 minutesLast updated 5 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
CapsulecastCommand(Vector3, Vector3, float, Vector3, QueryParameters, float)
Creates a CapsulecastCommand.
public CapsulecastCommand(Vector3 p1, Vector3 p2, float radius, Vector3 direction, QueryParameters queryParameters, float distance = 3.4028235E+38)
Parameters
The center of the sphere at the of the capsule.
startThe center of the sphere at the of the capsule.
endThe radius of the capsule.
The direction of the capsule cast.
Structure for specifying additional parameters for a batch query such as layer mask, hit triggers and hit backfaces.
The maximum length of the sweep.
Remarks
This command is run in the default physics scene.
CapsulecastCommand(PhysicsScene, Vector3, Vector3, float, Vector3, QueryParameters, float)
Creates a CapsulecastCommand.
public CapsulecastCommand(PhysicsScene physicsScene, Vector3 p1, Vector3 p2, float radius, Vector3 direction, QueryParameters queryParameters, float distance = 3.4028235E+38)
Parameters
The physics scene to run the command in.
The center of the sphere at the of the capsule.
startThe center of the sphere at the of the capsule.
endThe radius of the capsule.
The direction of the capsule cast.
Structure for specifying additional parameters for a batch query such as layer mask, hit triggers and hit backfaces.
The maximum length of the sweep.
CapsulecastCommand(Vector3, Vector3, float, Vector3, float, int)
Creates a CapsulecastCommand.
public CapsulecastCommand(Vector3 p1, Vector3 p2, float radius, Vector3 direction, float distance = 3.4028235E+38, int layerMask = -5)
Parameters
The center of the sphere at the of the capsule.
startThe center of the sphere at the of the capsule.
endThe radius of the capsule.
The direction of the capsule cast.
The maximum length of the sweep.
Remarks
This command is run in the default physics scene.
CapsulecastCommand(PhysicsScene, Vector3, Vector3, float, Vector3, float, int)
Creates a CapsulecastCommand.
public CapsulecastCommand(PhysicsScene physicsScene, Vector3 p1, Vector3 p2, float radius, Vector3 direction, float distance = 3.4028235E+38, int layerMask = -5)
Parameters
The physics scene to run the command in.
The center of the sphere at the of the capsule.
startThe center of the sphere at the of the capsule.
endThe radius of the capsule.
The direction of the capsule cast.
The maximum length of the sweep.