Table of Contents

Struct PhysicsSweepCircle2DRequest

Namespace
Gravitas.Queries
Assembly
Gravitas.dll

Describes one pure 2D swept-circle query in a batched query call.

public readonly struct PhysicsSweepCircle2DRequest
Inherited Members

Constructors

PhysicsSweepCircle2DRequest(Vector2d, Vector2d, Fixed64)

Creates a pure 2D swept-circle request against all physics layers.

public PhysicsSweepCircle2DRequest(Vector2d start, Vector2d end, Fixed64 radius)

Parameters

start Vector2d
end Vector2d
radius Fixed64

PhysicsSweepCircle2DRequest(Vector2d, Vector2d, Fixed64, PhysicsLayerMask, LSCollider2D?, bool)

Creates a pure 2D swept-circle request.

public PhysicsSweepCircle2DRequest(Vector2d start, Vector2d end, Fixed64 radius, PhysicsLayerMask layerMask, LSCollider2D? excludedCollider = null, bool includeTriggers = true)

Parameters

start Vector2d
end Vector2d
radius Fixed64
layerMask PhysicsLayerMask
excludedCollider LSCollider2D
includeTriggers bool

Properties

End

Gets the swept-circle center's end in the X/Z plane.

public Vector2d End { get; }

Property Value

Vector2d

ExcludedCollider

Gets the collider omitted from candidate results, if any.

public LSCollider2D? ExcludedCollider { get; }

Property Value

LSCollider2D

IncludeTriggers

Gets whether trigger colliders are included.

public bool IncludeTriggers { get; }

Property Value

bool

LayerMask

Gets the included physics layers.

public PhysicsLayerMask LayerMask { get; }

Property Value

PhysicsLayerMask

Radius

Gets the swept circle radius.

public Fixed64 Radius { get; }

Property Value

Fixed64

Start

Gets the swept-circle center's start in the X/Z plane.

public Vector2d Start { get; }

Property Value

Vector2d