Added getCameraPosition to Level because it is used very often.
This commit is contained in:
parent
49dfdff413
commit
7d0cf9fca2
4
level.cc
4
level.cc
@ -133,3 +133,7 @@ Object* Level::getCameraCenter() {
|
||||
Light* Level::getDirectionalLight() {
|
||||
return &directionalLight;
|
||||
}
|
||||
|
||||
glm::vec3 Level::getCameraPosition() {
|
||||
return cameraCenter->getPosition() + camera.getVector();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user