Skip to content

Collision Detection

Today I finally got the collision detection for my current game project functional. There are still a few minor bugs in certain sitatuations, but basically it’s working. For now I just implemented an Octree for spatial partitioning and only Lines, Spheres and OBBs as collision geometries. For the implementation I referred to the books “Real-Time Collision Detection” by Christer Ericson and “3D Game Engine Architecture: Engineering Real-Time Applications with Wild Magic” by David H. Eberly.

The whole implementation was way more complicated than I thought and it took a while to get everything working as I wanted it to. I’ve learned quite a bit doing this dirty work myself,  but for future games I will probably make use of an existing physics engine.

The following screenshots shows how I used just the simple given types of collision objects to model a test level:

Next I’m gonna try to create simple vehicle physics. My goal is just to make it fun driving around, not so much being realistic.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Bunkerbewohner1

  • RT @allowe: A hundred years ago everybody owned horses and only the rich had cars. Now everybody has a car and only the rich own horses. 1 week ago
  • @viquizru hi! excuse me for using English, but my Russian sucks: Is it possible to liccense any of your questions for commercial use? 1 week ago
  • RT @thinkmariya: "Now that Uber doesn't have a CEO, COO, CTO, or CFO, I guess this is the closest it's ever been to a self-driving car comp… 1 week ago
  • I'm totally hooked on Visual Studio Team Services. It's great! 1 week ago
  • Having a look at Visual Studio Team Services and it actually looks pretty good wrt integrated agile workflow and unlimited git repos. 1 week ago

My Del.icio.us

%d bloggers like this: