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.
Inherited Members
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 ending position of a Ray.
Declaration
public float3 End { get; set; }
Property Value
Type | Description |
---|---|
float3 | The ending position of a ray. |
Start
The starting position of a Ray.
Declaration
public float3 Start { get; set; }
Property Value
Type | Description |
---|---|
float3 | The starting position of a Ray. |
Methods
ToString()
Convert this object into a string representation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that represents this object. |