Skip to content

ralphy127/Acceleration-Field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acceleration Field Simulation

This is a simple simulation of an acceleration field with a terrain based on an elevation function.

The elevation function takes three arguments: x, y and t (time). The terrain is updated every frame.

Input

  • Input argument (optional): RPN of the elevation function, e.g.: "0.01 x * 0.1 y * + t * sin 0.01 y * 0.1 t * + sin +" (the default)
  • Space button: freeze/unfreeze the terrain
  • Left mouse button: drop a ball, the ball will follow the terrain and find a local minimum

Displayed:

  • topographic map (red is high, green in the middle, blue is low)
  • acceleration field (arrows pointing towards the local minimum)
  • balls

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors