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.
Namespace: NWH.DWP2.DemoContent
Assembly: NWH.DWP2.dll
Syntax
public class CubeGridSpawner : MonoBehaviour
Fields
| Edit this page View Sourcedepth
Spacing between cubes on the Z axis.
Declaration
public float depth
Field Value
| Type | Description |
|---|---|
| float |
height
Spacing between cubes on the Y axis.
Declaration
public float height
Field Value
| Type | Description |
|---|---|
| float |
width
Spacing between cubes on the X axis.
Declaration
public float width
Field Value
| Type | Description |
|---|---|
| float |
xResolution
Number of cubes to spawn along the X axis.
Declaration
public int xResolution
Field Value
| Type | Description |
|---|---|
| int |
yResolution
Number of cubes to spawn along the Y axis.
Declaration
public int yResolution
Field Value
| Type | Description |
|---|---|
| int |
zResolution
Number of cubes to spawn along the Z axis.
Declaration
public int zResolution
Field Value
| Type | Description |
|---|---|
| int |