diff --git a/cocos/base/CCCamera.cpp b/cocos/base/CCCamera.cpp index 3c17d9cddc..6067830fd1 100644 --- a/cocos/base/CCCamera.cpp +++ b/cocos/base/CCCamera.cpp @@ -101,18 +101,6 @@ const Mat4& Camera::getViewMatrix() const } return _view; } -const Mat4& Camera::getInverseViewMatrix() const -{ - Mat4 viewInv(getNodeToWorldTransform()); - static int count = sizeof(float) * 16; - if (memcmp(viewInv.m, _viewInv.m, count) != 0) - { - _viewProjectionDirty = true; - _viewInv = viewInv; - _view = viewInv.getInversed(); - } - return _viewInv; -} void Camera::lookAt(const Vec3& lookAtPos, const Vec3& up) { Vec3 upv = up; diff --git a/cocos/base/CCCamera.h b/cocos/base/CCCamera.h index b308b7afbb..aa95b15064 100644 --- a/cocos/base/CCCamera.h +++ b/cocos/base/CCCamera.h @@ -119,12 +119,6 @@ public: * @return The camera view matrix. */ const Mat4& getViewMatrix() const; - /** - * Gets the camera's inverse view matrix. - * - * @return The camera inverse view matrix. - */ - const Mat4& getInverseViewMatrix() const; /**get view projection matrix*/ const Mat4& getViewProjectionMatrix() const;