BGE: Adding support for Bullet's collision masks. Each object now has a collision...
authorMitchell Stokes <mogurijin@gmail.com>
Tue, 30 Oct 2012 15:44:16 +0000 (15:44 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Tue, 30 Oct 2012 15:44:16 +0000 (15:44 +0000)
commit3bf9bb3b13521c8bba4d559f308c5b2c04973df8
tree2f1e92d25671239d16b51df88f57ffc6dea93c79
parent5753ede9a5cda9e23cc346ca57f6fb677e9fbb92
BGE: Adding support for Bullet's collision masks. Each object now has a collision mask and a collision group. Object A and object B collide if object A's groups is in object B's mask and object B's group is in object A's mask. In other words, the group defines what the object is (collision wise) and the group defines what the object can collide with.

The majority of this patch was provided by Kupoman with some edits from me and heavy testing by z0r.
release/scripts/startup/bl_ui/properties_game.py
source/blender/blenkernel/intern/object.c
source/blender/blenloader/intern/readfile.c
source/blender/makesdna/DNA_object_types.h
source/blender/makesrna/intern/rna_object.c
source/gameengine/Converter/BL_BlenderDataConversion.cpp
source/gameengine/Ketsji/KX_GameObject.cpp
source/gameengine/Ketsji/KX_GameObject.h
source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp