Skip to content
Permalink
Browse files

DetachedHeadCamera: Expose head orientation from HMD

  • Loading branch information...
skalarproduktraum committed Jul 28, 2019
1 parent 0e5dd88 commit 44abefd5c907450afd4cd76f2f72404257fa986c
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/main/kotlin/graphics/scenery/DetachedHeadCamera.kt
@@ -110,9 +110,12 @@ class DetachedHeadCamera(@Transient var tracker: TrackerInput? = null) : Camera(
}
}

/** Orientation of the user's head */
/** Position of the user's head */
val headPosition: GLVector by HeadPositionDelegate()

/** Orientation of the user's head */
val headOrientation: Quaternion by HeadOrientationDelegate()

init {
this.nodeType = "Camera"
this.name = "DetachedHeadCamera-${tracker ?: "${counter.getAndIncrement()}"}"

0 comments on commit 44abefd

Please sign in to comment.
You can’t perform that action at this time.