Blender Git Commit Log

Git Commits -> Revision 3d55859

Revision 3d55859 by Porteries Tristan (master)
April 18, 2015, 23:04 (GMT)
BGE: Support for collision group/mask from the api + activated on EndObject.

A Python API for the collision group / mask has been added:
```
KX_GameObject.collisionGroup
KX_GameObject.collisionMask
```
The maximum number of collision groups and masked has been increased from eight to sixteen.
This means that the max value of collisionGroup/Mask is (2 ** 16) - 1

EndObject will now activate objects that were sleeping and colliding with the removed object.
This means that, unlike now, if a rigid body starts sleeping on top of another object, when the latter is removed the rigid body will activate and fall, rather than float midair as before.

Collision groups that do not intersect used to collide on the first frame. Now this has been fixed so that they collide appropriately.

Thanks to agoose77 for his help.

Reviewers: scorpion81, hg1, agoose77, sergof

Reviewed By: agoose77, sergof

Subscribers: sergof, moguri

Projects: #game_physics, #game_engine

Differential Revision: https://developer.blender.org/D1243

Commit Details:

Full Hash: 3d55859924713aada6f35ca7d9a0ed270bdad08b
Parent Commit: a2f9a0c
Committed By: Jorge Bernal
Lines Changed: +150, -13

10 Modified Paths:

/doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst (+12, -0) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_object_types.h (+1, -1) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+68, -2) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+10, -4) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp (+27, -1) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.h (+18, -1) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp (+10, -1) (Diff)
/source/gameengine/Physics/common/PHY_IPhysicsController.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021