Show raw api
{
"functions": [
{
"name": "GetState",
"desc": "The state of a tracked instance, or nil.",
"params": [
{
"name": "instance",
"desc": "",
"lua_type": "Instance"
}
],
"returns": [
{
"desc": "",
"lua_type": "State?"
}
],
"function_type": "static",
"source": {
"line": 145,
"path": "packages/src/Ocean/Tracker.luau"
}
},
{
"name": "GetInWater",
"desc": "Every tracked instance touching the water.",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "{ Instance }"
}
],
"function_type": "static",
"source": {
"line": 154,
"path": "packages/src/Ocean/Tracker.luau"
}
},
{
"name": "Init",
"desc": "",
"params": [],
"returns": [],
"function_type": "static",
"private": true,
"source": {
"line": 168,
"path": "packages/src/Ocean/Tracker.luau"
}
}
],
"properties": [],
"types": [
{
"name": "State",
"desc": "",
"fields": [
{
"name": "Touching",
"lua_type": "boolean",
"desc": "its bottom is below the surface"
},
{
"name": "Under",
"lua_type": "boolean",
"desc": "its top is below the surface"
},
{
"name": "Depth",
"lua_type": "number",
"desc": "studs below the surface (negative above)"
},
{
"name": "Surface",
"lua_type": "number",
"desc": "world Y of the surface there"
}
],
"source": {
"line": 41,
"path": "packages/src/Ocean/Tracker.luau"
}
}
],
"name": "Tracker",
"desc": "Water state for tagged instances (`OceanFloat`, `OceanTrack`) and every player character, updated\neach frame on whichever side you ask from. The transitions fire the signals on [Ocean]:\n`EnteredWater`, `ExitedWater`, `WentUnderWater`, `WentAboveWater`. Inside an `OceanDry` region\nnothing counts as water.",
"source": {
"line": 33,
"path": "packages/src/Ocean/Tracker.luau"
}
}