BGE patch 18065: gameobj mass writeable + setmass actuator. This patch allows to...
authorBenoit Bolsee <benoit.bolsee@online.be>
Wed, 14 Jan 2009 22:33:39 +0000 (22:33 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Wed, 14 Jan 2009 22:33:39 +0000 (22:33 +0000)
commit509ca83ef1d10fab4903981714cfab3719280e04
tree0b065c5d22bb511a148db43ba260e98195f5c155
parent00c12e09066c551e3ae8ee6da3cb85fb3bcf90f8
BGE patch 18065: gameobj mass writeable + setmass actuator. This patch allows to change the mass of a dynamic or rigid body object during the game. Two methods are available: in a Python script by setting the mass attribute of the game object; by logic brick with the Edit Object->Dynamics->Set Mass actuator. The mass can only be set on dynamic objects and must be a positive floating point value.
12 files changed:
source/blender/makesdna/DNA_actuator_types.h
source/blender/src/buttons_logic.c
source/gameengine/Converter/KX_ConvertActuators.cpp
source/gameengine/Ketsji/KX_BulletPhysicsController.cpp
source/gameengine/Ketsji/KX_BulletPhysicsController.h
source/gameengine/Ketsji/KX_GameObject.cpp
source/gameengine/Ketsji/KX_IPhysicsController.h
source/gameengine/Ketsji/KX_SCA_DynamicActuator.cpp
source/gameengine/Ketsji/KX_SCA_DynamicActuator.h
source/gameengine/Ketsji/KX_SumoPhysicsController.cpp
source/gameengine/Ketsji/KX_SumoPhysicsController.h
source/gameengine/Physics/Bullet/CcdPhysicsController.cpp