Tidewater: Oceans, Lakes, Rivers, Waterfalls, Swimming and Splashes Water Kit
README.md
feels
The four swim feels of tidewaterSwim (arcade, realistic, heavy, cartoon) as tables of numbers, and the package's public Luau types: SwimFeelName, SwimState (walking | wading | swimming | treading | diving | climbing) and SwimFeel. The Swimmer component reads it; game code calls it to list feels or add its own.
local Feels = require("tidewaterSwim.feels")
type SwimState = Feels.SwimState
print(Feels.get("heavy").swimSpeed) -- 0.9
Feels.register("otter", { swimSpeed = 5, diveSpeed = 4, breath = 0 }) -- missing numbers come from arcade
Feels.get(name) answers a copy (arcade for an unknown name), Feels.has(name), Feels.all(), Feels.names, Feels.states.