Struct PhysicsSweepCircle2DRequest
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
startVector2dendVector2dradiusFixed64
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
startVector2dendVector2dradiusFixed64layerMaskPhysicsLayerMaskexcludedColliderLSCollider2DincludeTriggersbool
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
IncludeTriggers
Gets whether trigger colliders are included.
public bool IncludeTriggers { get; }
Property Value
LayerMask
Gets the included physics layers.
public PhysicsLayerMask LayerMask { get; }
Property Value
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