BGE bug #17688 fixed: Near Sensor Reset not working (for Gamekit)
authorBenoit Bolsee <benoit.bolsee@online.be>
Wed, 1 Oct 2008 07:55:02 +0000 (07:55 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Wed, 1 Oct 2008 07:55:02 +0000 (07:55 +0000)
commit949b6ca80f68d5cb99a0d17dd66238ef15444ac2
tree685d682c02661a43b43359c9759d1ba483281b47
parentf4c1fcefe8a8a9466f4d5b0d8b0a18eac84e34ca
BGE bug #17688 fixed: Near Sensor Reset not working (for Gamekit)

Implementation of the PHY_IPhysicsController::SetMargin(),
GetMargin(), SetRadius() and GetRadius() for Bullet and Sumo
to allow resetting the Near sensor radius. For bullet use
the new setUnscaledRadius() function to change sphere radius.

In pPreparation of a Fh constraint actuator:
- Add KX_IPhysicsController::GetRadius()
- Fix implementation of KX_BulletPhysicsController::GetVelocity()
  (velocity at a point in geometric coordinate)
- Don't try to set velocity on static object (Bullet will assert)
- Add KX_GameObject::GetVelocity() for C access to local velocity
15 files changed:
source/gameengine/Ketsji/KX_BulletPhysicsController.cpp
source/gameengine/Ketsji/KX_BulletPhysicsController.h
source/gameengine/Ketsji/KX_GameObject.cpp
source/gameengine/Ketsji/KX_GameObject.h
source/gameengine/Ketsji/KX_IPhysicsController.h
source/gameengine/Ketsji/KX_NearSensor.cpp
source/gameengine/Ketsji/KX_OdePhysicsController.cpp
source/gameengine/Ketsji/KX_OdePhysicsController.h
source/gameengine/Ketsji/KX_SumoPhysicsController.cpp
source/gameengine/Ketsji/KX_SumoPhysicsController.h
source/gameengine/Physics/BlOde/OdePhysicsController.h
source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
source/gameengine/Physics/Bullet/CcdPhysicsController.h
source/gameengine/Physics/Sumo/SumoPhysicsController.h
source/gameengine/Physics/common/PHY_IPhysicsController.h