mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 22:22:54 +02:00
renamed viveTrackedObjects.js to drawTrackedObjects.js
Removed requirement of having a Vive hooked up. Input recordings can have trackedObjects within them.
This commit is contained in:
parent
4e75123740
commit
8d56a313e8
1 changed files with 8 additions and 10 deletions
|
@ -21,7 +21,6 @@ function shutdown() {
|
||||||
var BLUE = {x: 0, y: 0, z: 1, w: 1};
|
var BLUE = {x: 0, y: 0, z: 1, w: 1};
|
||||||
|
|
||||||
function update(dt) {
|
function update(dt) {
|
||||||
if (Controller.Hardware.Vive) {
|
|
||||||
TRACKED_OBJECT_POSES.forEach(function (key) {
|
TRACKED_OBJECT_POSES.forEach(function (key) {
|
||||||
var pose = Controller.getPoseValue(Controller.Standard[key]);
|
var pose = Controller.getPoseValue(Controller.Standard[key]);
|
||||||
if (pose.valid) {
|
if (pose.valid) {
|
||||||
|
@ -31,6 +30,5 @@ function update(dt) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
init();
|
init();
|
Loading…
Reference in a new issue