Struct Physics2DSupportQuery
Describes a downward circle probe for physical support of a registered 2D collider.
public readonly struct Physics2DSupportQuery
- Inherited Members
Constructors
Physics2DSupportQuery(LSCollider2D, Vector2d, Fixed64, Vector2d, Fixed64, Fixed64, PhysicsLayerMask)
Creates a support probe and normalizes its nonzero upward direction.
public Physics2DSupportQuery(LSCollider2D source, Vector2d center, Fixed64 radius, Vector2d up, Fixed64 distance, Fixed64 minimumNormalDot, PhysicsLayerMask layers)
Parameters
sourceLSCollider2DcenterVector2dradiusFixed64upVector2ddistanceFixed64minimumNormalDotFixed64layersPhysicsLayerMask
Properties
Center
Gets the initial probe center in native physics coordinates.
public Vector2d Center { get; }
Property Value
- Vector2d
Distance
Gets the positive maximum travel distance.
public Fixed64 Distance { get; }
Property Value
- Fixed64
Layers
Gets the included support layers, in addition to physical collision filters.
public PhysicsLayerMask Layers { get; }
Property Value
MinimumNormalDot
Gets the inclusive normal/up threshold in (0, 1].
public Fixed64 MinimumNormalDot { get; }
Property Value
- Fixed64
Radius
Gets the positive probe radius.
public Fixed64 Radius { get; }
Property Value
- Fixed64
Source
Gets the registered collider whose physical collision policy applies.
public LSCollider2D Source { get; }
Property Value
Up
Gets the nonzero direction opposite to the sweep.
public Vector2d Up { get; }
Property Value
- Vector2d