Shore Session
19 nodes
On this page 19
Advance
FunctionAdvances the water by a span of simulated time (s), in steps of at most a sixtieth of a second.
Advance(Shore Session: Shore Session, seconds: Number)
void Advance(ShoreSession Shore Session, double seconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — | |
| seconds | Number | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Body Position
FunctionWhere a body is now (m).
BodyPosition -> Vector3d
Shore Session: Shore Session
name: TextVector3d BodyPosition(ShoreSession Shore Session, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — | |
| name | Text | — | Its name. |
Returns
| result | Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Body Rotation
FunctionHow a body is turned now.
BodyRotation -> Quaterniond
Shore Session: Shore Session
name: TextQuaterniond BodyRotation(
ShoreSession Shore Session,
string name)Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — | |
| name | Text | — | Its name. |
Returns
| result | Quaterniond |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Body Velocity
FunctionHow fast a body moves now (m/s).
BodyVelocity -> Vector3d
Shore Session: Shore Session
name: TextVector3d BodyVelocity(ShoreSession Shore Session, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — | |
| name | Text | — | Its name. |
Returns
| result | Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Capture Bodies
FunctionThe bodies as they are now, as a moment the 3D view draws.
CaptureBodies(Shore Session: Shore Session) -> Simulation Frame
SimulationFrame CaptureBodies(ShoreSession Shore Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — |
Returns
| result | Simulation Frame |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Dispose
FunctionEnds the session and gives its memory on the graphics card back.
Dispose(Shore Session: Shore Session)
void Dispose(ShoreSession Shore Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Frame
FunctionHow many frames Step Frame has stepped.
Frame(Shore Session: Shore Session) -> Integer
int Frame(ShoreSession Shore Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Scene
FunctionThe scene the session started from.
Scene(Shore Session: Shore Session) -> Shore Scene Description
ShoreSceneDescription Scene(ShoreSession Shore Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — |
Returns
| result | Shore Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Time
FunctionSimulated time (s).
Time(Shore Session: Shore Session) -> Number
double Time(ShoreSession Shore Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Push Body
FunctionGives a body a push at its centre: an impulse (N·s), its mass times the change of velocity. A boat shoved off the sand, a gust.
PushBody
Shore Session: Shore Session
name: Text
impulse: Vector3dvoid PushBody(
ShoreSession Shore Session,
string name,
Vector3d impulse)Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — | |
| name | Text | — | The body's name. |
| impulse | Vector3d | — | The impulse (N·s). |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Render
FunctionA picture of the shore as it is now.
Render -> Pixel Image
Shore Session: Shore Session
eye: Vector3d
target: Vector3d
width: Integer
height: Integer
fieldOfView: NumberPixelImage Render(
ShoreSession Shore Session,
Vector3d eye,
Vector3d target,
int width = 640,
int height = 480,
double fieldOfView = 40)Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — | |
| eye | Vector3d | — | Where the camera stands (m). |
| target | Vector3d | — | What it looks at (m). |
| width | Integer | 640 | The picture's width in pixels. |
| height | Integer | 480 | The picture's height in pixels. |
| fieldOfView | Number | 40 | The camera's vertical field of view in degrees. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Set Sea
FunctionChanges the sea that comes in to that of another Ocean scene: the wind rising, veering or dying. The waves already on the shore run on; the new ones follow them in.
SetSea
Shore Session: Shore Session
sea: Ocean Scene Descriptionvoid SetSea(
ShoreSession Shore Session,
OceanSceneDescription sea)Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — | |
| sea | Ocean Scene Description | — | The sea whose wind is taken. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Set Waves
FunctionChanges the swell that comes in from the sea: a storm building, or dying away.
SetWaves
Shore Session: Shore Session
amplitude: Number
period: Numbervoid SetWaves(
ShoreSession Shore Session,
double amplitude,
double period = 8)Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — | |
| amplitude | Number | — | Its height from its middle to its crest (m). |
| period | Number | 8 | Its period (s). |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Step Frame
FunctionAdvances the water by one frame of a frame rate.
StepFrame(Shore Session: Shore Session, framesPerSecond: Number)
void StepFrame(
ShoreSession Shore Session,
double framesPerSecond = 30)Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — | |
| framesPerSecond | Number | 30 |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Surface
FunctionThe water's surface as it is now, as a mesh over the cells that are wet.
Surface -> Streamed Vertex Mesh Data
Shore Session: Shore Session
every: IntegerStreamedVertexMeshData Surface(
ShoreSession Shore Session,
int every = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — | |
| every | Integer | 1 | Use every cell (1), every second one (2) and so on. |
Returns
| result | Streamed Vertex Mesh Data |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Take Events
FunctionWhat the scene's triggers have done since the last call, oldest first: an event for each time one fired, with its time, its place and the body it was about. Empty when nothing fired, or the shore has no triggers.
TakeEvents(Shore Session: Shore Session) -> Simulation Event Array
SimulationEvent[] TakeEvents(ShoreSession Shore Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — |
Returns
| result | Simulation Event Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Water Depth
FunctionHow deep the water is at a point now (m): 0 where the sand is dry.
WaterDepth -> Number
Shore Session: Shore Session
position: Vector3ddouble WaterDepth(ShoreSession Shore Session, Vector3d position)
Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — | |
| position | Vector3d | — | The point; its Z is not used. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Water Volume
FunctionHow much water is on the area now (m³).
WaterVolume(Shore Session: Shore Session) -> Number
double WaterVolume(ShoreSession Shore Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Shore Session | Shore Session | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation
Start
FunctionStarts a session from a shore scene.
Start(scene: Shore Scene Description) -> Shore Session
ShoreSession Start(ShoreSceneDescription scene)
Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Shore Scene Description | — | The shore. |
Returns
| result | Shore Session |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Shore Session
- Package
- Physics Simulation