mirror of
https://github.com/overte-org/overte.git
synced 2025-04-12 16:08:10 +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};
|
||||
|
||||
function update(dt) {
|
||||
if (Controller.Hardware.Vive) {
|
||||
TRACKED_OBJECT_POSES.forEach(function (key) {
|
||||
var pose = Controller.getPoseValue(Controller.Standard[key]);
|
||||
if (pose.valid) {
|
||||
DebugDraw.addMyAvatarMarker(key, pose.rotation, pose.translation, BLUE);
|
||||
} else {
|
||||
DebugDraw.removeMyAvatarMarker(key);
|
||||
}
|
||||
});
|
||||
}
|
||||
TRACKED_OBJECT_POSES.forEach(function (key) {
|
||||
var pose = Controller.getPoseValue(Controller.Standard[key]);
|
||||
if (pose.valid) {
|
||||
DebugDraw.addMyAvatarMarker(key, pose.rotation, pose.translation, BLUE);
|
||||
} else {
|
||||
DebugDraw.removeMyAvatarMarker(key);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
init();
|
Loading…
Reference in a new issue