Struct RaycastInput
The input to RayCastQueries consists of the Start and End positions of a line segment as well as a CollisionFilter to cull potential hits.
Namespace: Unity.Physics
Syntax
public struct RaycastInput
Fields
Filter
The CollisionFilter is used to determine what objects the Ray is and isn't going to hit.
Declaration
public CollisionFilter Filter
Field Value
| Type | Description |
|---|---|
| CollisionFilter |
Properties
End
The End position of a Ray.
Declaration
public float3 End { get; set; }
Property Value
| Type | Description |
|---|---|
| float3 |
Start
The Start position of a Ray.
Declaration
public float3 Start { get; set; }
Property Value
| Type | Description |
|---|---|
| float3 |
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |