FrictionConfigByDirection extension
Picks the matching Friction ramp from a FrictionConfig for the given direction state. One-line mapping that mirrors the enum's shape to the config's four slots.
Methods
-
forDirection(
DragDirectionState direction) → Friction? -
Available on FrictionConfig, provided by the FrictionConfigByDirection extension