Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Namespace NWH.DWP2.WaterData

    Classes

    FlatWaterDataProvider

    Simple water data provider for flat, static water surfaces. Uses a constant water height based on the transform's Y position. Does not support water height queries, waves, normals, or flow.

    RaycastWaterDataProvider

    Water data provider that uses raycasting to detect water surface. Works with any water system that has a collider. Supports water height and normal queries through raycasting. Uses Unity's job system for parallel raycasts.

    WaterDataProvider

    Base class for providing water surface data to WaterObjects. Implementations provide water height, flow velocity, and surface normal information. Uses a trigger collider to automatically detect and register WaterObjects that enter the water. Inherit from this class to create adapters for different water systems.

    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics