2
votes
1answer
93 views

Where should the collision response/resolution code go?

I've got a collision response/resolution function that does the same for any pair of two entities. It's is in the World class right now. But right before that function is invoked, I have some ...
4
votes
1answer
283 views

Techniques for displaying vehicle damage

I wonder how I can displaying vehicle damage. I am talking about a good way to show damage on screen. Which kind of models are common in games and what are the benefits of them? What is state of the ...
1
vote
2answers
649 views

How to implement physics and AoE spells in an MMO game?

I'm making a game which will be completely centered around PVP battlegrounds and arenas. Think something like WoW, but with the RPG part removed. There will just be a lobby, where you can join a ...
17
votes
5answers
10k views

How can I implement gravity?

How can I implement gravity? Not for a particular language, just pseudocode...
11
votes
5answers
1k views

How could you parallelise a 2D boids simulation

How could you program a 2D boids simulation in such a way that it could use processing power from different sources (clusters, gpu). In the above example, the non-coloured particles move around ...
3
votes
1answer
284 views

Approximating walking physics via simpler sliding physics

I am modeling walking insects. I implement them as cuboids and use forces (including friction and drag), to control motion. However, the movement characteristics of this 'sliding box' physics don't ...
9
votes
1answer
2k views

Separating physics and game logic from UI code

I'm working on a simple block-based puzzle game. The game play consists pretty much of moving blocks around in the game area, so it's a trivial physics simulation. My implementation, however, is in ...
7
votes
6answers
614 views

Physics library internals

I've seen box2d and bullet ports into javascript, but neither of them attracted me particularly, except by source code. It all seemed, after all, quite simple once I looked inside them. But what are ...