Blender Git Commit Log
Git Commits -> Revision 1f43b08
Revision 1f43b08 by Jorge Bernal (master) July 7, 2014, 15:06 (GMT) |
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 |
Commit Details:
Full Hash: 1f43b083a97ee56b8b15692ef19d0e973b6d31ac
Parent Commit: ef22e97
Committed By: Mitchell Stokes
Lines Changed: +29, -9
5 Modified Paths:
/doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst (+9, -3) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+3, -2) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp (+15, -2) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.h (+1, -1) (Diff)
/source/gameengine/Physics/common/PHY_IPhysicsController.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+3, -2) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp (+15, -2) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.h (+1, -1) (Diff)
/source/gameengine/Physics/common/PHY_IPhysicsController.h (+1, -1) (Diff)