Skip to content

zkmkarlsruhe/js-Gerstner-wave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gerstner Wave Simulation

Preview of the waves

API

Wave

wave = new Wave( scaling, direction, speed, height, lambda )

  • scaling : THREE.Vector3. This defines the size of the field to emulate the wave in.
  • direction : THREE.Vector3. Sets the direction of propgation of the wave.
  • speed : float. Propagation speed.
  • height : float. Height of the wave.
  • lambda : float. Wavelenght relative to the scaling.

Properties

  • .scaling : THREE.Vector3 defines the size of the field.
  • .direction : THREE.Vector3. Propgation direction of the wave.

Methods

  • .getParticle( particle )
  • .update()

MultipleWaves

sea = new MultipleWaves( scaling )

  • scaling : THREE.Vector3. This defines the size of the field to emulate the wave in.

Properties

  • .scaling : THREE.Vector3 defines the size of the field.

Methods

  • .example()
  • .addWave( direction, height, speed, lambda )
  • .getParticle( particle )
  • .update()

Related

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages