Elastic collision
This JavaScript program simulates a ball bouncing in a dual-gravity environment where acceleration can be set by the user in the horizontal (ax) and vertical (ay) directions. Changing ax or ay will take an immediate effect.
Program: | Elastic collision |
---|---|
Purpose: | Demonstration of a bouncing ball in a dual-gravity environment |
Repository: | https://github.com/HuidaeCho/elastic-collision |
Author: | Huidae Cho |
Copyright: | (C) 2017, 2019, Huidae Cho <https://idea.isnew.info/> |
License: | GNU Affero General Public License v3 |
Model parameters: acceleration in x (ax) and y (ay)
ax: | ay: | ||
vx: | vy: | ||
x: | y: |