vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::OceanSurge Struct Reference

A ridge of water rolling across the sea, raised by gameplay: a straight crest of finite length, rising and falling as a cosine across the way it rolls, its ends tapered away. More...

#include <ocean.h>

Public Attributes

glm::vec2 centre = glm::vec2(0.0f)
 World X and Z: the crest's middle.
glm::vec2 direction = {0.0f, 1.0f}
 On the XZ plane: the way it rolls; zero is no surge.
float height = 0.0f
 Metres over the water's rest at the crest; 0 is none.
float halfWidth = 1.0f
 Metres from the crest to the sea, along its roll.
float halfLength = 4.0f
 Metres from its middle to each end, along its crest.

Detailed Description

A ridge of water rolling across the sea, raised by gameplay: a straight crest of finite length, rising and falling as a cosine across the way it rolls, its ends tapered away.

Part of the water like any wave, so it is shaded, foamed and floated on as the sea is; unlike the wind's waves it is not faded by the ocean's calm radius. Its crest foams.


The documentation for this struct was generated from the following file: