blender/source/gameengine
Sybren A. Stüvel c5c2883ce0 BGE Fix: apply velocity clamping on every physics subtick
This patch uses the Bullet "internal tick callback" functionality to
ensure that velocity clamping is performed after every physics update.
This makes a difference when physics subticks > 1, as in that case the
too-high velocity could have impacted the simulation.

This patch follows the examples at [1] and [2]; the latter example
also explains that the way we limit velocity in the BGE (before this
patch) is wrong.

[1] http://bulletphysics.org/mediawiki-1.5.8/index.php/Simulation_Tick_Callbacks
[2] http://www.bulletphysics.org/mediawiki-1.5.8/index.php/Code_Snippets#I_want_to_cap_the_speed_of_my_spaceship;

Reviewed by: panzergame

Differential Revision: https://developer.blender.org/D1364
2015-06-28 12:54:53 +02:00
..
BlenderRoutines BGE: New API method getDisplayDimensions 2015-04-07 18:32:25 +02:00
Converter BGE Cleanup: remove dead code for collide, visible and twoside variables 2015-06-05 02:24:23 +02:00
Expressions BGE: dissallow calling reverse on internal clists 2015-06-20 20:02:16 +10:00
GameLogic BGE Cleanup: Identical code for both if/else branches 2015-05-30 18:15:11 +02:00
GamePlayer BGE : Fix black material on meshes without materials in blenderplayer. 2015-05-24 11:46:57 +02:00
Ketsji BGE: Fix color used as background in VideoTexture. 2015-06-24 13:03:23 +02:00
Network mathutils: refactor instantiation 2015-01-04 17:43:57 +11:00
Physics BGE Fix: apply velocity clamping on every physics subtick 2015-06-28 12:54:53 +02:00
Rasterizer BGE: Fix T38030: wrong vertex index returned by KX_PolyProxy 2015-06-20 14:21:31 +02:00
SceneGraph Style Cleanup: remove preprocessor indentation (updated wiki style guide too) 2013-12-22 14:12:19 +11:00
VideoTexture BGE: Fix color used as background in VideoTexture. 2015-06-24 13:03:23 +02:00
CMakeLists.txt CMake: Enable strict flags for C++ 2015-03-27 18:23:31 +05: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