blender/source
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
..
blender Sequencer: Allow generating proxies from script without having sequencer space active 2015-01-15 22:35:34 +05:00
blenderplayer Fix T43174: "Record animation" does not update fcurve handles 2015-01-09 15:29:47 +01:00
creator Remove executable flag from the build configuration files 2014-12-31 14:05:53 +05:00
gameengine BGE physics: get/set linear and angular damping 2015-01-15 18:37:22 +01:00
icons Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
CMakeLists.txt Move tests into tests/ top-level dir 2014-06-18 22:03:46 +10:00
SConscript Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00