Rigid Body Help

BlitzMax Forums/BlitzMax Programming/Rigid Body Help

Baz(Posted 2008) [#1]
Hi,
I really need some help on this one. Here's the link to my rigid body simulator:
http://www.megafileupload.com/en/file/37096/rigid-bmx.html
though calling it a simulator would be an overstatement at the moment since I can't get the collision response part working. It has some other bugs or lets call them flaws, it's also the collision detection that causes problems.
But I figure that I should even be able to get reasonble responses just by plugging in some arbitrary values which isn't the case. I suspect there's some problem with the ResolveRectCollision() Function near the end or some kind of problem with the method that is calling the function. After printing some values I strongly believe that it's something with the calculations themselves, maybe with my vector class.
I'd be very glad if someone could take a look as I've seen there are a couple of physics related projects in the code archives so there should be some knowledgeable people around. I'm trying to implement the collision model of http://chrishecker.com/Rigid_Body_Dynamics and
SiGGraph and it's part of paper for school, so it hasn't got to be perfect, yet I need to be able to show something off.

P.s: There are some (working ;) RK4 Integrator Functions at the end, if someones interested.