From 5df9926f491f532422b20cb3315321e245480129 Mon Sep 17 00:00:00 2001 From: Kester Maddock Date: Mon, 26 Apr 2004 07:19:18 +0000 Subject: Fix MouseFocus Sensor objects for dynamic cameras. (Bug 1165) --- source/gameengine/Ketsji/KX_Camera.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source/gameengine/Ketsji/KX_Camera.h') diff --git a/source/gameengine/Ketsji/KX_Camera.h b/source/gameengine/Ketsji/KX_Camera.h index 25a3b891e01..0185a0ba9d5 100644 --- a/source/gameengine/Ketsji/KX_Camera.h +++ b/source/gameengine/Ketsji/KX_Camera.h @@ -96,10 +96,12 @@ public: void SetModelviewMatrix(const MT_Matrix4x4 & mat); /** Gets the projection matrix that is used by the rasterizer. */ - void GetProjectionMatrix(MT_Matrix4x4 & mat); + const MT_Matrix4x4& GetProjectionMatrix(); - /** Gets the modelview matrix that is used by the rasterizer. */ - void GetModelviewMatrix(MT_Matrix4x4 & mat); + /** Gets the modelview matrix that is used by the rasterizer. + * @warning If the Camera is a dynamic object then this method may return garbage. Use GetCameraToWorld() instead. + */ + const MT_Matrix4x4& GetModelviewMatrix(); /** Gets the focal lenght. */ float GetLens(); -- cgit v1.2.3