Fisix (Physics)

Posted by DevonX on Jan. 5, 2007, 9:30 p.m.

Damn, physics are pretty hard to program. All I am trying to do is make a physics engine for a 2-point stick, and some blocks that it falls on. I have gotten it to be pretty realistic, but when the stick falls perfectly vertical onto a block, it just collapses on itself and looks like one point more than a line with points at the ends. All my attempts at fixing this have failed miserably, and this is getting very frustrating, first i tryed makeing it so it falls over when that happens, but it still collapses, but with the points a few pixels away. Another way was just putting the point 64 pixels less than the lower points y-coordinate, but for some reason that still collapsed. If anyone could make a simple physics engine for a stick falling on blocks and reacting appropietly, I would apreciate than very much.

Thnx all!

Comments

Kaz 17 years, 4 months ago

Good news! A physics engine has already been made, its called GMPhysics and it owns everything and is fairly simple to use. Look in the dll section on the GMC.

mooselumph 17 years, 4 months ago

I've never tried GMPhysics, but I trust Kaz that it's pretty good.

If you don't want a DLL solution, you could try my verlet engine:

Info and Download. It certainly has the capability that you want, and it's also fairly simple, but it's not very well documented. Only use it if your willing to do some figuring out. Otherwise, GMPhysics is probably a better idea, as it has a large group of users who could help you. On the other hand, you might consider it overkill have a dll and a whole library of scripts, if you're doing something simple.

DevonX 17 years, 4 months ago

im not trying to make a game, i just want the sense of achievment after making a nice, but simple, physics engine.

lol, i knew i would see mooselumph comment on this.