Collision Physics Javascript Patch

Basic Javascript Physics simulator…

 

A demonstration patch that has Javascript collision detection as its core.

 

Javascript starting code sourced from Isadora user @Marci and the following 2015 Isadora Forum thread:

 

https://community.troikatronix.com/topic/2238/basic-physics-engine-stage-edge-collision-with-rebound-gravity-and-friction?_=1632603478353

 

the following original code sources are referenced:

http://jzaefferer.github.io/flocking/bouncing.html

Vector math basics to animate a bouncing ball in JavaScript

 

the collision detection is just between the objects and the

bounds of “the world”.

 

Packaged as a demonstration patch, updated with additional gravity and world parameters by bonemap Sept 2021

 

 

For Isadora
3.x
Actor version(s)
1
Uploaded
September 30 2021
Size
218.29 KB
Downloads
901
Ratings
Download
Comments
Log in to Reply