Roblox UtilitiesDevlHub Roblox Documentation

Class

BuoyancySensor

Inherits
SensorBase › Instance › Object
Memory category
Instances

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

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#

FullySubmergedbooleanTrue when the entirety of the BasePart is submerged in Terrain water with at least one voxel of water above it.ReadSafe
TouchingSurfacebooleanTrue when any position on the BasePart is touching Terrain water.ReadSafe

FullySubmerged: boolean#

ReadSafe

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: boolean#

ReadSafe

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.

Inherited members#

Inherited from SensorBase 3
Properties (1)

UpdateType

Methods (1)

Sense

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed