Small Collision and Response Demo

Started by
1 comment, last by Zakwayda 5 years, 8 months ago

Hi

When i started out i had big troubles with collision detections and collision response, i tried several months/years (on and off) and did not get any progress.
But i kept on trying and i improved my code. ?

I remember when starting out i was looking for a small noncomplex code/samples that i could look at but there werent not many that was simple and easy to setup.

So now i have a small Demo in JavaScript that i would like to share.

I think this is a simple way to solve CollisionResponse and maybe someone can use this or find this helpful.

 

Collision Detection Sphere.html

Oh, it also shows the problem when the velocity gets bigger than the spheres radius and the "tunneling" effect occurs. ?

Oh, a tip that always is repeated.

Start small, (means do not make a Quake 3 replica in Direct3D like i did)

Visualize everything (thats how you find bugs)

Brake problems down to very tiny and small and solve from there.

Advertisement

Nice job. I didn't look at the code, but the behavior seems solid. Self-contained examples like this can be very useful (and HTML+JavaScript is a very convenient platform for them).

This topic is closed to new replies.

Advertisement