Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resources for 2d game physics [closed]

Tags:

c#

physics

f#

2d

I'm looking for some good references for learning how to model 2d physics in games. I am not looking for a library to do it for me - I want to think and learn, not blindly use someone else's work.

I've done a good bit of Googling, and while I've found a few tutorials on GameDev, etc., I find their tutorials hard to understand because they are either written poorly, or assume a level of mathematical understanding that I don't yet possess.

For specifics - I'm looking for how to model a top-down 2d game, sort of like a tank combat game - and I want to accurately model (among other things) acceleration and speed, heat buildup of 'components,' collisions between models and level boundaries, and missile-type weapons.

Websites, recommended books, blogs, code examples - all are welcome if they will aid understanding. I'm considering using C# and F# to build my game, so code examples in either of those languages would be great - but don't let language stop you from posting a good link. =)

Edit: I don't mean that I don't understand math - it's more the case that I don't know what I need to know in order to understand the systems involved, and don't really know how to find the resources that will teach me in an understandable way.

like image 764
Erik Forbes Avatar asked Oct 03 '08 02:10

Erik Forbes


People also ask

What physics engine does Unity use?

Through WebGL, Unity developers could add their games to compatible Web browsers with no plug-ins required for players. Unity 5.0 offered real-time global illumination, light mapping previews, Unity Cloud, a new audio system, and the Nvidia PhysX 3.3 physics engine.

How do you detect collisions?

If both the horizontal and vertical edges overlap we have a collision. We check if the right side of the first object is greater than the left side of the second object and if the second object's right side is greater than the first object's left side; similarly for the vertical axis.

How do physics simulators work?

A physics simulation starts with a mathematical model whose variables define the state of the system at a given time. Each variable represents the position or velocity of some part of the system. The heart of a physics simulation is the set of differential equations that describe how the variables evolve over time.


1 Answers

Here are some resources I assembled a few years ago. Of note is the Verlet Integration. I am also including links to some open source and commercial physics engines I found at that time. There is a stackoverflow article on this subject here: 2d game physics?

Physics Methods

  • Verlet Integration (Wikipedia Article)
  • Advanced Character Physics (Great article! Includes movement, collisions, joints, and other constraints.)

Books

  • "Game Physics Engine Development", Ian Millington -- I own this book and highly recommend it. The book builds a physics engine in C++ from scratch. The Author starts with basic particle physics and then adds "laws of motion", constraints, rigid-body physics and on and on. He includes well documented source code all the way through.

Physics Engines

  • Tokamak (Open source physics API)
  • APE (Actionscript Physics Engine)
  • FLADE (Flash Dynamics Engine)
  • Fisix Engine (another Flash Actionscript engine)
  • Simple Physics Engine (commercial)
like image 82
mistrmark Avatar answered Oct 14 '22 02:10

mistrmark