BGE bug #17688 fixed: Near Sensor Reset not working (for Gamekit)
[blender.git] / source / gameengine / Ketsji / KX_GameObject.cpp
index 15055a9cf93d21e8a19071ebec4ccdbfa0726b88..1b57b9acc1d9e5b8022ce6d6e6a80702f69ad9ff 100644 (file)
@@ -772,7 +772,14 @@ MT_Vector3 KX_GameObject::GetAngularVelocity(bool local)
        return velocity;        
 }
 
-
+MT_Vector3 KX_GameObject::GetVelocity(const MT_Point3& point)
+{
+       if (m_pPhysicsController1)
+       {
+               return m_pPhysicsController1->GetVelocity(point);
+       }
+       return MT_Vector3(0.0,0.0,0.0);
+}
 
 // scenegraph node stuff