cleanup comments etc

This commit is contained in:
James B. Pollack 2016-07-08 15:03:59 -07:00
parent 38e580b211
commit 3492367c63

View file

@ -1,24 +1,11 @@
// Created by james b. pollack @imgntn on 7/2/2016 // Created by james b. pollack @imgntn on 7/2/2016
// Copyright 2016 High Fidelity, Inc. // Copyright 2016 High Fidelity, Inc.
// //
// Creates a beam and target and then teleports you there when you let go of the activation button. // Creates a beam and target and then teleports you there when you let go of either activation button.
// //
// Distributed under the Apache License, Version 2.0. // Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//FEATURES:
// ENTRY MODE
// Thumpad + trigger
// JUMP MODES
// Instant
// Smoth arrival aka stepwise (number of steps, duration of step)
// FADE MODE
// Cube-overlay (steps,duration)
// Model-overlay (steps, duration)
// Fade out / fade in
// defaults with instant jump with fade. to try smooth arrival mode, change use fade to false and then switch the number of arrival steps and spacing // defaults with instant jump with fade. to try smooth arrival mode, change use fade to false and then switch the number of arrival steps and spacing
var inTeleportMode = false; var inTeleportMode = false;
@ -68,7 +55,6 @@ function ThumbPad(hand) {
_thisPad.buttonValue = value; _thisPad.buttonValue = value;
}; };
} }
function Trigger(hand) { function Trigger(hand) {
@ -114,7 +100,6 @@ function Teleporter() {
}; };
this.createMappings = function() { this.createMappings = function() {
// peek at the trigger and thumbs to store their values
teleporter.telporterMappingInternalName = 'Hifi-Teleporter-Internal-Dev-' + Math.random(); teleporter.telporterMappingInternalName = 'Hifi-Teleporter-Internal-Dev-' + Math.random();
teleporter.teleportMappingInternal = Controller.newMapping(teleporter.telporterMappingInternalName); teleporter.teleportMappingInternal = Controller.newMapping(teleporter.telporterMappingInternalName);
@ -360,7 +345,6 @@ function Teleporter() {
}; };
this.rightLineOn = function(closePoint, farPoint, color) { this.rightLineOn = function(closePoint, farPoint, color) {
// draw a line
if (this.rightOverlayLine === null) { if (this.rightOverlayLine === null) {
var lineProperties = { var lineProperties = {
start: closePoint, start: closePoint,
@ -472,7 +456,6 @@ function Teleporter() {
} }
var offset = getAvatarFootOffset(); var offset = getAvatarFootOffset();
this.intersection.intersection.y += offset; this.intersection.intersection.y += offset;
// MyAvatar.position = _this.intersection.intersection;
this.exitTeleportMode(); this.exitTeleportMode();
this.smoothArrival(); this.smoothArrival();
@ -621,10 +604,8 @@ function registerMappings() {
return; return;
}); });
} }
registerMappings(); registerMappings();
var teleporter = new Teleporter(); var teleporter = new Teleporter();