mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:49:27 +02:00
clean util
This commit is contained in:
parent
27f70e9d52
commit
dc9c06a159
1 changed files with 9 additions and 9 deletions
|
@ -1,17 +1,17 @@
|
||||||
function mousePressEvent(event) {
|
function mousePressEvent(event) {
|
||||||
var overlay = Overlays.getOverlayAtPoint({x:event.x,y:event.y});
|
var overlay = Overlays.getOverlayAtPoint({
|
||||||
print('overlay is: ' + overlay)
|
x: event.x,
|
||||||
// var pickRay = Camera.computePickRay(event.x, event.y);
|
y: event.y
|
||||||
|
});
|
||||||
// var intersection = Overlays.findRayIntersection(pickRay);
|
// var pickRay = Camera.computePickRay(event.x, event.y);
|
||||||
// print('intersection is: ' + intersection)
|
// var intersection = Overlays.findRayIntersection(pickRay);
|
||||||
|
// print('intersection is: ' + intersection)
|
||||||
};
|
};
|
||||||
|
|
||||||
Controller.mouseMoveEvent.connect(function(event){
|
Controller.mousePressEvent.connect(function(event) {
|
||||||
print('mouse press')
|
|
||||||
mousePressEvent(event)
|
mousePressEvent(event)
|
||||||
});
|
});
|
||||||
|
|
||||||
Script.scriptEnding.connect(function(){
|
Script.scriptEnding.connect(function() {
|
||||||
Controller.mousePressEvent.disconnect(mousePressEvent);
|
Controller.mousePressEvent.disconnect(mousePressEvent);
|
||||||
})
|
})
|
Loading…
Reference in a new issue