blender/source/gameengine
Jorge Bernal 1f43b083a9 BGE: Fix for applyImpulse function
This is related to task T29419. Credit also goes to Goran Milovanovic
(goran) for proposing an initial fix for this issue.

The issue is the current behavior of applyImpulse doesn't match the behavior
described in the documentation as instead of a impulse point in world coordinates,
it seems to require a coordinate in a local space.

Additionally, applyImpulse function isn't consistent with similar functions (applyForce, applyTorque, etc)
as it doesn't allow  to choose in which space (local or global) the impulse is applied.

Now, we have the following function:

applyImpulse(point, impulse, local=False)
being "point" the point to apply the impulse to (in world or local coordinates). When local is False will
have both point and impulse in World space and when local is True will have point and impulse in local space.

Reviewers: moguri, dfelinto, brita_

Reviewed By: moguri

Differential Revision: https://developer.blender.org/D567
2014-07-07 08:06:39 -07:00
..
BlenderRoutines Support for building without Python 2014-06-17 22:00:13 +10:00
Converter Fix T40761: Bone constraints broken in the BGE 2014-06-30 21:00:46 -07:00
Expressions Support for building without Python 2014-06-17 22:00:13 +10:00
GameLogic Slight cleanup for 4af848e. 2014-07-02 22:55:39 -07:00
GamePlayer CMake: correct include dirs 2014-07-01 09:36:28 +10:00
Ketsji BGE: Fix for applyImpulse function 2014-07-07 08:06:39 -07:00
Network clang/cmake - quiet warnings for external libs and reference moto as a system include. 2013-07-15 08:26:16 +00:00
Physics BGE: Fix for applyImpulse function 2014-07-07 08:06:39 -07:00
Rasterizer Support for building without Python 2014-06-17 22:00:13 +10:00
SceneGraph Style Cleanup: remove preprocessor indentation (updated wiki style guide too) 2013-12-22 14:12:19 +11:00
VideoTexture Code cleanup: doxy comments 2014-05-14 15:00:47 +10:00
CMakeLists.txt
SConscript