Table of Contents

Struct PhysicsSweepSphereAgainst2DRequest

Namespace
Gravitas.Queries
Assembly
Gravitas.dll

Describes one mixed 3D swept-sphere query against embedded 2D slabs.

public readonly struct PhysicsSweepSphereAgainst2DRequest
Inherited Members

Constructors

PhysicsSweepSphereAgainst2DRequest(Vector3d, Vector3d, Fixed64)

Creates a mixed 3D sphere sweep against all embedded 2D physics layers.

public PhysicsSweepSphereAgainst2DRequest(Vector3d start, Vector3d end, Fixed64 radius)

Parameters

start Vector3d
end Vector3d
radius Fixed64

PhysicsSweepSphereAgainst2DRequest(Vector3d, Vector3d, Fixed64, PhysicsLayerMask, LSCollider?, bool)

Creates a mixed 3D sphere sweep against embedded 2D slabs.

public PhysicsSweepSphereAgainst2DRequest(Vector3d start, Vector3d end, Fixed64 radius, PhysicsLayerMask layerMask, LSCollider? excludedCollider = null, bool includeTriggers = true)

Parameters

start Vector3d
end Vector3d
radius Fixed64
layerMask PhysicsLayerMask
excludedCollider LSCollider
includeTriggers bool

Properties

End

Gets the sphere center's world-space end.

public Vector3d End { get; }

Property Value

Vector3d

ExcludedCollider

Gets the optional 3D source collider used for mixed-collision filtering.

public LSCollider? ExcludedCollider { get; }

Property Value

LSCollider

IncludeTriggers

Gets whether trigger targets are included.

public bool IncludeTriggers { get; }

Property Value

bool

LayerMask

Gets the included 2D target layers.

public PhysicsLayerMask LayerMask { get; }

Property Value

PhysicsLayerMask

Radius

Gets the swept sphere radius.

public Fixed64 Radius { get; }

Property Value

Fixed64

Start

Gets the sphere center's world-space start.

public Vector3d Start { get; }

Property Value

Vector3d