BGE bug #17688 fixed: Near Sensor Reset not working (for Gamekit)
[blender.git] / source / gameengine / Ketsji / KX_BulletPhysicsController.cpp
index 3d20ce8a3a558d0a9067c4d687997c4f2579a76f..bf838e60210744078c07bbdf60092e77a45b74f6 100644 (file)
@@ -115,7 +115,7 @@ MT_Vector3 KX_BulletPhysicsController::GetAngularVelocity()
 MT_Vector3 KX_BulletPhysicsController::GetVelocity(const MT_Point3& pos)
 {
        float linVel[3];
-       CcdPhysicsController::GetLinearVelocity(linVel[0],linVel[1],linVel[2]);
+       CcdPhysicsController::GetVelocity(pos[0], pos[1], pos[2], linVel[0],linVel[1],linVel[2]);
        return MT_Vector3(linVel[0],linVel[1],linVel[2]);
 }
 
@@ -160,6 +160,12 @@ MT_Scalar  KX_BulletPhysicsController::GetMass()
        return 0.f;
 
 }
+
+MT_Scalar KX_BulletPhysicsController::GetRadius()
+{
+       return MT_Scalar(CcdPhysicsController::GetRadius());
+}
+
 MT_Vector3     KX_BulletPhysicsController::getReactionForce()
 {
        assert(0);