mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-19 08:18:05 +02:00
Made third person work with oculus
This commit is contained in:
parent
407a98f00e
commit
3bc8e0f726
1 changed files with 3 additions and 1 deletions
|
@ -557,8 +557,10 @@ void Application::paintGL() {
|
|||
float pushback = 0.0f;
|
||||
float pushbackFocalLength = 0.0f;
|
||||
if (OculusManager::isConnected()) {
|
||||
if (_myCamera.getMode() == CAMERA_MODE_FIRST_PERSON) {
|
||||
_myCamera.setDistance(0.0f);
|
||||
}
|
||||
_myCamera.setUpShift(0.0f);
|
||||
_myCamera.setDistance(0.0f);
|
||||
_myCamera.setTightness(0.0f); // Camera is directly connected to head without smoothing
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue