Skip to content

Class · inherits SensorBase

BuoyancySensor

Official docs ↗

A SensorBase that outputs data about how its BasePart is interacting with Terrain water.

About BuoyancySensor

A SensorBase that outputs data about how its BasePart is interacting with Terrain water, allowing you to determine if the part is or is not in water.

Properties 2

  • FullySubmerged: booleanTrue when the entirety of the BasePart is submerged in Terrain water with at least one voxel of water above it.

    This property is true when the entirety of the BasePart is submerged in Terrain water with at least one voxel of water above it.

  • TouchingSurface: booleanTrue when any position on the BasePart is touching Terrain water.

    This property is true when any position on the BasePart is touching Terrain water. The detection measurements are not exact and may use the bounding box of the part instead of its exact geometry.

BuoyancySensor also has every member of SensorBase. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.