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.U2D.Entities.Physics
Syntax
public struct RaycastInput : IQueryInput
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 float2 End { get; set; }
Property Value
Type | Description |
---|---|
float2 |
Ignore
Optional control of a specific PhysicsBody to ignore.
Declaration
public IgnoreHit Ignore { get; set; }
Property Value
Type | Description |
---|---|
IgnoreHit |
Implements
Ray
Declaration
public Ray Ray { get; }
Property Value
Type | Description |
---|---|
Ray |
Start
The Start position of a Ray.
Declaration
public float2 Start { get; set; }
Property Value
Type | Description |
---|---|
float2 |