CodeRecipe( );

one stop for all game coders..

Follow us on Twitter
Home
Why is rigidBody needed ? Print E-mail
User Rating: / 0
PoorBest 
Written by CR Team   
Tuesday, 06 July 2010 17:55
Why is a rigid Body needed and why is it so important ?

rb_mesh_relation

In the above diagram you see a 3d Mesh ( usually coming from 3rd party applications like Maya / 3dsmax /blender etc ) in blue and rigidody created using a physics engine like Ageia / Havok /Bullet etc in gray.

The following points hold true for a rigidbody:

  • A rigidbody is something close to an outer covering/shell that represent the 3d mesh or encapsulates it.( as shown in diagram.)
  • Given a really complex 3d mesh , rigidbody are very rough duplication of the 3d model/mesh. This rough outer shell/cover helps speed up mathematical calculation... HOW ? Just remember that lesser the vertices lesser the contact points on the surface hence lesser the number of calculations when 2 or more objects collide in your game.
  • A rigidBody helps the physics engine set some rules and guidelines which it in turn uses later on to rapidly solve mathematical crazy stuff.
  • A rigidBody can give you control and define which objects collide and which once don't ( suppose you don't enable collision between a game character and wall , the game character can just walk through the wall ;) )
  • There are lot more things you can do.. but the above points pretty much introduce you to the idea of why they are needed ...

Which Physics engine would my game engine be using ?

Game Engine Physics Engine it uses
Unity 3D Ageia physX Engine
Torque 3D Ageia physX Engine
Shiva 3D ODE dynamic engine
Adobe Director Ageia physX Engine
Unreal Engine Ageia physX Engine
Crytek - CryEngine CryEngine physics

Next: Types of rigidBody

coming up...

 


 

CR Login

CodeRecipe Store

Twitter Feed

CR :) >>: RT @indiegamescom: Student game dev competition Dare to be Digital now accepting applicants http://t.co/Hf1phWJG