Blender Git Loki

Git Commits -> Revision dfc19a1

Revision dfc19a1 by Benoit Bolsee (master)
May 28, 2012, 21:36 (GMT)
BGE patch #28476: Character object physics type
===============================================
This patch adds a new "Character" BGE physics type which uses Bullet's btKinematicCharacter for simulation instead of full-blown dynamics. It is appropiate for (player-controlled) characters, for which the other physics types often result unexpected results (bouncing off walls, sliding etc.) and for which simple kinematics offers much more precision.

"Character" can be chosen like any other physics type in the "Physics" section of the properties window. Current settings for tweaking are "Step Height" (to make the object automatically climb small steps if it collides with them), "Fall Speed" (the maximum speed that the object can have when falling) and "Jump Speed", which is currently not used.

See http://projects.blender.org/tracker/?func=detail&atid=127&aid=28476&group_id=9
for sample blends and a discussion on the patch: how to use it and what influences the behavior of the character object.

Known problem: there is a crash if the "compound" option is set in the physics panel of the Character object.

Commit Details:

Full Hash: dfc19a1ff7968e547c33ef3304849f69ddf76f4f
SVN Revision: 47140
Parent Commit: 4e0492e
Lines Changed: +168, -29

21 Modified Paths:

/extern/bullet2/CMakeLists.txt (+2, -2) (Diff)
/extern/bullet2/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h (+1, -1) (Diff)
/extern/bullet2/src/BulletDynamics/Character/btKinematicCharacterController.cpp (+1, -1) (Diff)
/extern/bullet2/src/SConscript (+1, -1) (Diff)
/release/scripts/startup/bl_ui/properties_game.py (+7, -2) (Diff)
/source/blender/blenkernel/intern/object.c (+3, -0) (Diff)
/source/blender/makesdna/DNA_object_types.h (+8, -0) (Diff)
/source/blender/makesrna/intern/rna_object.c (+33, -8) (Diff)
/source/blender/python/generic/py_capi_utils.c (+1, -1) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+11, -0) (Diff)
/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp (+3, -3) (Diff)
/source/gameengine/Ketsji/KX_BulletPhysicsController.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_ConvertPhysicsObject.h (+1, -0) (Diff)
/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp (+10, -2) (Diff)
/source/gameengine/Ketsji/KX_IPhysicsController.cpp (+2, -1) (Diff)
/source/gameengine/Ketsji/KX_IPhysicsController.h (+10, -1) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+4, -1) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp (+48, -2) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.h (+11, -1) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp (+7, -1) (Diff)
/source/gameengine/Physics/common/PHY_Pro.h (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021