gsoc 2013 branch soc-2013-rigid_body_sim
svn merge -r57394:57521 ^/trunk/blender
rigidbody: Take deformations into account when creating collision shapes

TODO: Make sure ob->derivedDeform always esists.
rigidbody: Add debug drawing

This is very much a hack (crashes with big scenes), and will be removed
or at least rewritten in the future.
Use debug value 616 to enable.
rigidbody: Avoid unnecessary reallocations when creating mesh shapes
svn merge -r57524:57642 ^/trunk/blender
svn merge -r57643:57984 ^/trunk/blender
svn merge -r57985:57990 ^/trunk/blender
svn merge -r57991:58488 ^/trunk/blender
rigidbody: Add custom center of mass for primitive shapes

Now the origin of the object is the center of mass for all collision
shapes.
To do that all shapes are now wrapped inside a compound shape.

TODO: fix istability with mesh shapes when using compounds, might be
bullet bug.
rigidbody: Fix convex hull shape

Missed adding compound shape wrapper.
rigidbody: Add support for compound shapes

Compounds are defined implicitly by the parenting hierarchy.

TODO: Take more one level of the hierarchy is taken into account when
creating compound shapes.
rigidbody: Merge RB_body_get_position/orientation functions into one

Avoids unneeded calculations.
Add HACD (Hierarchical Approximate Convex Decomposition) library

This is the version bundled with bullet.
We should probably use a more recent version but there are different
repositories out there, so we have to test first.
svn merge -r58494:59227 ^/trunk/blender
rigdibody: Don't free DerivedMesh when creating mesh shapes

It's not necessary since we don't create it ourselves now.
rigidbody: Fix gimpact shape

Also forgot compound wrapper here
rigidbody: Add convex decomposition collision shape

Uses HACD to break concave meshes into convex chunks and stores them in
a compound shape.

There is a lot of room for optimization. Right now performing convex
decomposition can be very slow for complex meshes.
Fix building with blenderplayer
svn merge -r59229:59868 ^/trunk/blender