Table of Contents

Struct PhysicsRaycast2DRequest

Namespace
Gravitas.Queries
Assembly
Gravitas.dll

Describes one pure 2D segment raycast in a batched query call.

public readonly struct PhysicsRaycast2DRequest
Inherited Members

Constructors

PhysicsRaycast2DRequest(Vector2d, Vector2d)

Creates a pure 2D segment raycast request against all physics layers.

public PhysicsRaycast2DRequest(Vector2d start, Vector2d end)

Parameters

start Vector2d
end Vector2d

PhysicsRaycast2DRequest(Vector2d, Vector2d, PhysicsLayerMask)

Creates a pure 2D segment raycast request with an include layer mask.

public PhysicsRaycast2DRequest(Vector2d start, Vector2d end, PhysicsLayerMask layerMask)

Parameters

start Vector2d
end Vector2d
layerMask PhysicsLayerMask

Properties

End

Gets the segment end in the X/Z plane.

public Vector2d End { get; }

Property Value

Vector2d

LayerMask

Gets the included physics layers.

public PhysicsLayerMask LayerMask { get; }

Property Value

PhysicsLayerMask

Start

Gets the segment start in the X/Z plane.

public Vector2d Start { get; }

Property Value

Vector2d