Water
Static methods
Method |
Description |
---|---|
Casts a ray through the scene until it collides with the WaterLevel or a WaterVolume. |
|
Details
-
class Water
-
-
static float GetWaterLevel()
-
static object Raycast(Ray ray, float range)
Casts a ray through the scene until it collides with the WaterLevel or a WaterVolume.
- Parameters:
ray – Test for collisions along this ray.
range – Look no further than this [meters].
- Returns:
A RaycastHit if a collision occurs along the ray; otherwise nil.
-
static void SetWaterLevel(float height)
-
static float GetWaterLevel()