Blender Git Loki
Git Commits -> Revision 58bc424
Revision 58bc424 by Benoit Bolsee (master) May 29, 2012, 20:30 (GMT) |
BGE #30734: add support for physics linear and angular thresholds and deactivation time from python and GUI. ======================== The linear and angular thresholds set the speed limit (in m/s) and rotation limit (in rad/s) under which a rigid body will go to sleep (stop moving) if it stays below the limits for a time equal or longer than the deactivation time (sleeping is disabled is deactivation time is set to 0). These settings help reducing the processing spent on Physics during the game. Previously they were only accessible from python but not working because of a bug. Now the python functions are working and the settings are available in the Physics panel of the World settings when using the Blender Game render engine. Python API: import PhysicsConstraints PhysicsConstraints.setDeactivationLinearTreshold(float) PhysicsConstraints.setDeactivationAngularTreshold(float) |
Commit Details:
Full Hash: 58bc424b3c46ee3ee6644ff578671670c2a1c8ec
SVN Revision: 47195
Parent Commit: 1d4ab9d
Lines Changed: +60, -8
9 Modified Paths:
/release/scripts/startup/bl_ui/properties_game.py (+8, -0) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/scene.c (+3, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+15, -2) (Diff)
/source/blender/makesdna/DNA_object_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+25, -0) (Diff)
/source/gameengine/Converter/KX_BlenderSceneConverter.cpp (+3, -2) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp (+3, -2) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/scene.c (+3, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+15, -2) (Diff)
/source/blender/makesdna/DNA_object_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+25, -0) (Diff)
/source/gameengine/Converter/KX_BlenderSceneConverter.cpp (+3, -2) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp (+3, -2) (Diff)