mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 09:08:47 +02:00
header and cleanup.
This commit is contained in:
parent
fb869034f2
commit
9f669748f4
1 changed files with 4 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
//
|
||||||
|
// Created by Alan-Michael Moody on 6/4/2017
|
||||||
|
//
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
|
@ -34,7 +38,6 @@
|
||||||
|
|
||||||
var rayExclusionList = [];
|
var rayExclusionList = [];
|
||||||
|
|
||||||
|
|
||||||
function laser(hand) {
|
function laser(hand) {
|
||||||
|
|
||||||
var PICK_MAX_DISTANCE = 500;
|
var PICK_MAX_DISTANCE = 500;
|
||||||
|
@ -53,7 +56,6 @@
|
||||||
length: PICK_MAX_DISTANCE
|
length: PICK_MAX_DISTANCE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
var ray = Entities.findRayIntersection(pickRay, true, [], rayExclusionList, true);
|
var ray = Entities.findRayIntersection(pickRay, true, [], rayExclusionList, true);
|
||||||
var avatarRay = AvatarManager.findRayIntersection(pickRay, true, [], rayExclusionList, true);
|
var avatarRay = AvatarManager.findRayIntersection(pickRay, true, [], rayExclusionList, true);
|
||||||
|
|
||||||
|
@ -109,7 +111,6 @@
|
||||||
linePoints: [Vec3.ZERO, {x: 0, y: dist, z: 0}]
|
linePoints: [Vec3.ZERO, {x: 0, y: dist, z: 0}]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
laserEntities[hand].beam = Entities.addEntity(beam,true);
|
laserEntities[hand].beam = Entities.addEntity(beam,true);
|
||||||
rayExclusionList.push(laserEntities[hand].beam);
|
rayExclusionList.push(laserEntities[hand].beam);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue