Files
test2/source/gameengine/Ketsji
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
..
2013-07-02 09:47:22 +00:00
2014-10-07 15:47:32 -05:00
2014-10-07 15:47:32 -05:00
2014-10-07 15:47:32 -05:00
2013-03-18 11:44:56 +00:00
2014-10-07 15:47:32 -05:00
2014-11-21 14:16:35 +01:00
2014-10-07 15:47:32 -05:00
2012-09-16 04:58:18 +00:00
2012-10-22 08:15:51 +00:00
2012-10-29 02:11:40 +00:00
2012-09-16 04:58:18 +00:00
2013-03-29 06:21:28 +00:00
2014-06-25 15:47:37 -07:00
2014-11-21 14:16:35 +01:00
2014-07-21 10:53:07 +10:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00
2013-12-24 05:44:54 +11:00
2014-06-25 15:47:37 -07:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00
2013-03-26 07:29:01 +00:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00
2012-11-05 14:24:35 +00:00
2013-07-02 09:47:22 +00:00
2013-12-24 05:44:54 +11:00
2014-10-07 15:47:32 -05:00