Skip to main content
GameDev.net gamedev.net
🔒 Locked

Physics Playground Beta

Started by MindWipe Aug 2, 2006 at 6:01 AM 1 replies 900+ views
Original Post
MindWipe
MindWipe
Alright, so I finally looked into 2d Physics. This engine is faar from perfect, but I'm still very happy having done this program in just one weekend, damn I love C# .net! (Although I have done some additional tweaking during the week, but my job goes first I'm afraid). Link to file it needs the .NET 2.0 framework. There's no friction, there is jittering, and I need a bias impulse to uncollide bodies. I wanna thank Erin Catto for his amazing Box2D demo (google!) and Chris Hecker for his great articles! When this engine is perfect I might do something like The Increadible Machine, that would be cool. Anyway, the program is quite self explaining. Keep the physics "Stop"ed and add boxes with infinite mass to keep them still (For example ground). And to begin I'd recommend adding two boxes, then choose "Apply Force" this is a pull-force, so drag a line from where you wanna apply the force. It can also crash, please don't give me the bug rapports (And it crashes user friendly, by throwing an exception, so don't you worry). Have fun! And please comment! /MindWipe EDIT: Bias Velocity added! w00t! Havn't had time to tweak it though, but works! :) [Edited by - MindWipe on August 2, 2006 6:18:01 AM]
"To some its a six-pack, to me it's a support group."
Jacob69
Jacob69
Nice work, are you give source code or...
MindWipe
MindWipe
Quote:
Original post by Jacob69
Nice work, are you give source code or...


Finally a reply! Thanks :)

Well, you know the source code isn't actualy much help, I guarantee it, I could release it but I assure you you'd learn better if you do what I did

Read and learn article 1 - 3:
Chris Hecker's Rigid Body Dynamics Information . They are great! And begin simple, with out rotations or collisions for example.

Then get this one: Box2D by Erin Catto . An amazing demo with source! (Better than mine).

And if you don't know what SAT is, learn it! (Separating Axis Theorem)

But if you want the source I could give it to you, but there are some hacks in it (Where I went "What if I just do this, that might make it more stable") so those hack's probably don't make much sense to you.


/MindWipe
"To some its a six-pack, to me it's a support group."

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.