mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 16:02:58 +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,16 +21,14 @@ 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) {
|
DebugDraw.addMyAvatarMarker(key, pose.rotation, pose.translation, BLUE);
|
||||||
DebugDraw.addMyAvatarMarker(key, pose.rotation, pose.translation, BLUE);
|
} else {
|
||||||
} else {
|
DebugDraw.removeMyAvatarMarker(key);
|
||||||
DebugDraw.removeMyAvatarMarker(key);
|
}
|
||||||
}
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
init();
|
init();
|
Loading…
Reference in a new issue