Particle Session
14 nodes
On this page 14
Advance
FunctionAdvances the particles by a span of simulated time (s), in steps of at most a sixtieth of a second.
Advance(Particle Session: Particle Session, seconds: Number)
void Advance(ParticleSession Particle Session, double seconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| seconds | Number | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Burst
FunctionHas an emitter give off a number of particles at once, in the next step.
Burst
Particle Session: Particle Session
name: Text
count: Integervoid Burst(
ParticleSession Particle Session,
string name,
int count)Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| name | Text | — | The emitter's name. |
| count | Integer | — | How many particles. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Count
FunctionHow many particles are alive now.
Count(Particle Session: Particle Session) -> Integer
int Count(ParticleSession Particle Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Dispose
FunctionEnds the session and gives its memory on the graphics card back.
Dispose(Particle Session: Particle Session)
void Dispose(ParticleSession Particle Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Frame
FunctionHow many frames Step Frame has stepped.
Frame(Particle Session: Particle Session) -> Integer
int Frame(ParticleSession Particle Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Scene
FunctionThe scene the session started from (what was moved since is not in it).
Scene(Particle Session: Particle Session) -> Particle Scene Description
ParticleSceneDescription Scene(ParticleSession Particle Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — |
Returns
| result | Particle Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Time
FunctionSimulated time (s).
Time(Particle Session: Particle Session) -> Number
double Time(ParticleSession Particle Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Move Emitter
FunctionMoves an emitter to a new place (m); its particles are born there from now on.
MoveEmitter
Particle Session: Particle Session
name: Text
position: Vector3dvoid MoveEmitter(
ParticleSession Particle Session,
string name,
Vector3d position)Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| name | Text | — | The emitter's name. |
| position | Vector3d | — | Its new centre (m). |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Move Solid
FunctionMoves a solid to a new place (m). It gets there over the next step and sweeps the particles in its way along.
MoveSolid
Particle Session: Particle Session
name: Text
position: Vector3dvoid MoveSolid(
ParticleSession Particle Session,
string name,
Vector3d position)Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| name | Text | — | The solid's name. |
| position | Vector3d | — | Its new centre (m). |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Points
FunctionWhere the live particles are now (m).
Points(Particle Session: Particle Session) -> Vector3d Array
Vector3d[] Points(ParticleSession Particle Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — |
Returns
| result | Vector3d Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Render
FunctionA picture of the scene as it is now: the ground, the solids and the particles.
Render -> Pixel Image
Particle Session: Particle Session
eye: Vector3d
target: Vector3d
width: Integer
height: Integer
fieldOfView: NumberPixelImage Render(
ParticleSession Particle Session,
Vector3d eye,
Vector3d target,
int width = 640,
int height = 480,
double fieldOfView = 40)Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle 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
- Particle Session
- Package
- Physics Simulation
Set Wind
FunctionChanges the wind (m/s).
SetWind(Particle Session: Particle Session, wind: Vector3d)
void SetWind(ParticleSession Particle Session, Vector3d wind)
Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| wind | Vector3d | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Step Frame
FunctionAdvances the particles by one frame of a frame rate.
StepFrame
Particle Session: Particle Session
framesPerSecond: Numbervoid StepFrame(
ParticleSession Particle Session,
double framesPerSecond = 30)Parameters
| name | type | default | description |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| framesPerSecond | Number | 30 |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation
Start
FunctionStarts a session from a particle scene.
Start(scene: Particle Scene Description) -> Particle Session
ParticleSession Start(ParticleSceneDescription scene)
Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Particle Scene Description | — | The scene. |
Returns
| result | Particle Session |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Particle Session
- Package
- Physics Simulation