mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:28:09 +02:00
logging
This commit is contained in:
parent
a79d334bed
commit
0602bf7f1a
1 changed files with 3 additions and 1 deletions
|
@ -48,9 +48,12 @@
|
||||||
entities.forEach(function(entity) {
|
entities.forEach(function(entity) {
|
||||||
var entityName = Entities.getEntityProperties(entity, "name").name;
|
var entityName = Entities.getEntityProperties(entity, "name").name;
|
||||||
if (entityName === _this.WHITEBOARD_SURFACE_NAME) {
|
if (entityName === _this.WHITEBOARD_SURFACE_NAME) {
|
||||||
|
|
||||||
_this.whiteboards.push(entity);
|
_this.whiteboards.push(entity);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
print("intersectable entities " + JSON.stringify(_this.whiteboards))
|
||||||
},
|
},
|
||||||
|
|
||||||
releaseEquip: function() {
|
releaseEquip: function() {
|
||||||
|
@ -72,7 +75,6 @@
|
||||||
var intersection = Entities.findRayIntersectionBlocking(pickRay, true, _this.whiteboards);
|
var intersection = Entities.findRayIntersectionBlocking(pickRay, true, _this.whiteboards);
|
||||||
_this.whiteboardNormal = Quat.getFront(intersection.properties.rotation);
|
_this.whiteboardNormal = Quat.getFront(intersection.properties.rotation);
|
||||||
if (intersection.intersects && Vec3.distance(intersection.intersection, markerProps.position) < _this.MAX_MARKER_TO_BOARD_DISTANCE) {
|
if (intersection.intersects && Vec3.distance(intersection.intersection, markerProps.position) < _this.MAX_MARKER_TO_BOARD_DISTANCE) {
|
||||||
print("EBL HIT")
|
|
||||||
Overlays.editOverlay(_this.laserPointer, {
|
Overlays.editOverlay(_this.laserPointer, {
|
||||||
visible: true,
|
visible: true,
|
||||||
position: intersection.intersection,
|
position: intersection.intersection,
|
||||||
|
|
Loading…
Reference in a new issue