Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Class CubeGridSpawner

    Demo script that spawns a 3D grid of cubes with WaterObjects attached. Used for stress-testing and demonstrating the buoyancy system with multiple objects.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    CubeGridSpawner
    Namespace: NWH.DWP2.DemoContent
    Assembly: NWH.DWP2.dll
    Syntax
    public class CubeGridSpawner : MonoBehaviour

    Fields

    | Edit this page View Source

    depth

    Spacing between cubes on the Z axis.

    Declaration
    public float depth
    Field Value
    Type Description
    float
    | Edit this page View Source

    height

    Spacing between cubes on the Y axis.

    Declaration
    public float height
    Field Value
    Type Description
    float
    | Edit this page View Source

    width

    Spacing between cubes on the X axis.

    Declaration
    public float width
    Field Value
    Type Description
    float
    | Edit this page View Source

    xResolution

    Number of cubes to spawn along the X axis.

    Declaration
    public int xResolution
    Field Value
    Type Description
    int
    | Edit this page View Source

    yResolution

    Number of cubes to spawn along the Y axis.

    Declaration
    public int yResolution
    Field Value
    Type Description
    int
    | Edit this page View Source

    zResolution

    Number of cubes to spawn along the Z axis.

    Declaration
    public int zResolution
    Field Value
    Type Description
    int
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics