mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 13:49:46 +02:00
expand comment
This commit is contained in:
parent
53ecf97df2
commit
ee46c781c4
1 changed files with 5 additions and 1 deletions
|
@ -274,7 +274,11 @@ void Head::setCorrectedLookAtPosition(glm::vec3 correctedLookAtPosition) {
|
||||||
}
|
}
|
||||||
|
|
||||||
glm::quat Head::getCameraOrientation() const {
|
glm::quat Head::getCameraOrientation() const {
|
||||||
// this is used to support driving toward where you're head is looking
|
// NOTE: Head::getCameraOrientation() is not used for orienting the camera "view" while in Oculus mode, so
|
||||||
|
// you may wonder why this code is here. This method will be called while in Oculus mode to determine how
|
||||||
|
// to change the driving direction while in Oculus mode. It is used to support driving toward where you're
|
||||||
|
// head is looking. Note that in oculus mode, your actual camera view and where your head is looking is not
|
||||||
|
// always the same.
|
||||||
if (OculusManager::isConnected()) {
|
if (OculusManager::isConnected()) {
|
||||||
return getOrientation();
|
return getOrientation();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue