Blender Git Loki

Git Commits -> Revision ed8dc78

Revision ed8dc78 by Sybren A. Stvel (master)
January 15, 2015, 17:37 (GMT)
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:

Commit Details:

Full Hash: ed8dc78691063f37eb411d1b2e095183a0a94dd5
Parent Commit: b675418
Lines Changed: +171, -0

Tehnyt: Miika HämäläinenViimeksi p?ivitetty: 07.11.2014 14:18 MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2020