blender/source/gameengine
Sybren A. Stüvel ed8dc78691 BGE physics: get/set linear and angular damping
This patch adds the following R/W properties and method to `KX_GameObject`:

  - `linearDamping`  -- get/set linear damping
  - `angluarDamping`  -- get/set angular damping
  - `setDamping(linear, angular)` -- set both simultaneously

These allow runtime changes to the same properties that are accessible at design time in Blender's UI via `game.damping` and `game.rotation_damping`. The names of the properties were chosen to mirror the internal names of the BGE physics engine, as these are (AFAIK) also the commonly used names in physics literature.

Reviewers: campbellbarton

Projects: #game_physics

Differential Revision: https://developer.blender.org/D936
2015-01-15 18:37:22 +01:00
..
BlenderRoutines Fix for bool flag use 2015-01-07 12:08:55 +11:00
Converter Fix T43174: "Record animation" does not update fcurve handles 2015-01-09 15:29:47 +01:00
Expressions Freestyle: reserve array sizes before filling 2015-01-04 21:23:26 +11:00
GameLogic Recent fix for SDL2 broke joysticks for SDL1.2 2015-01-05 20:23:30 +11:00
GamePlayer Fix for bool flag use 2015-01-07 12:08:55 +11:00
Ketsji BGE physics: get/set linear and angular damping 2015-01-15 18:37:22 +01:00
Network mathutils: refactor instantiation 2015-01-04 17:43:57 +11:00
Physics BGE physics: get/set linear and angular damping 2015-01-15 18:37:22 +01:00
Rasterizer Ghost Context Refactor 2014-10-07 15:47:32 -05:00
SceneGraph Style Cleanup: remove preprocessor indentation (updated wiki style guide too) 2013-12-22 14:12:19 +11:00
VideoTexture Revert "Fix T40257: Frustum culling not working properly" 2015-01-07 20:38:05 -08:00
CMakeLists.txt BGE: Removing the source files for the PHY interfaces since they just contained virtual destructors. This means we had license and doc blocks for 3 lines of code, which seemed silly. This also means that ge_phys_common no longer needs to be built as a library. I tested this with CMake and SCons using GCC; hopefully this doesn't break other systems. 2013-02-24 07:09:39 +00:00
SConscript BGE: Removing the source files for the PHY interfaces since they just contained virtual destructors. This means we had license and doc blocks for 3 lines of code, which seemed silly. This also means that ge_phys_common no longer needs to be built as a library. I tested this with CMake and SCons using GCC; hopefully this doesn't break other systems. 2013-02-24 07:09:39 +00:00