mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01: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) {
|
||||
var overlay = Overlays.getOverlayAtPoint({x:event.x,y:event.y});
|
||||
print('overlay is: ' + overlay)
|
||||
// var pickRay = Camera.computePickRay(event.x, event.y);
|
||||
|
||||
// var intersection = Overlays.findRayIntersection(pickRay);
|
||||
// print('intersection is: ' + intersection)
|
||||
var overlay = Overlays.getOverlayAtPoint({
|
||||
x: event.x,
|
||||
y: event.y
|
||||
});
|
||||
// var pickRay = Camera.computePickRay(event.x, event.y);
|
||||
// var intersection = Overlays.findRayIntersection(pickRay);
|
||||
// print('intersection is: ' + intersection)
|
||||
};
|
||||
|
||||
Controller.mouseMoveEvent.connect(function(event){
|
||||
print('mouse press')
|
||||
Controller.mousePressEvent.connect(function(event) {
|
||||
mousePressEvent(event)
|
||||
});
|
||||
|
||||
Script.scriptEnding.connect(function(){
|
||||
Script.scriptEnding.connect(function() {
|
||||
Controller.mousePressEvent.disconnect(mousePressEvent);
|
||||
})
|
Loading…
Reference in a new issue