Table of Contents

Struct DndCollisionQuery

Namespace
Velvet
Assembly
Velvet.Docs.dll

Everything a collision strategy may consider. Candidates are pre-filtered: in-scope, enabled, attached, same panel as the source, and the active draggable's own id excluded (an element that is both draggable and droppable under one id never collides with itself).

public readonly struct DndCollisionQuery

Constructors

DndCollisionQuery(Rect, Vector2, IReadOnlyList<DndDroppableRect>)

Properties

ActiveRect

The source's activation-time worldBound translated by the current pointer delta — correct even under None, where the source element itself never moves.

Droppables
PointerPosition

Current pointer position, panel space.