mirror of
https://github.com/overte-org/overte.git
synced 2025-05-01 14:25:52 +02:00
37 lines
No EOL
744 B
JavaScript
37 lines
No EOL
744 B
JavaScript
//
|
|
// ballDetector.js
|
|
//
|
|
// Script Type: Entity
|
|
//
|
|
// Created by James B. Pollack @imgntn on 2/15/2016
|
|
// Copyright 2016 High Fidelity, Inc.
|
|
//
|
|
//
|
|
// This script resets a ball to its original position when the ball enters it.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
(function() {
|
|
|
|
var _this;
|
|
|
|
function BallDetctor() {
|
|
_this = this;
|
|
return;
|
|
}
|
|
|
|
BallDetctor.prototype = {
|
|
enterEntity: function() {
|
|
print('BALL ENTERED BALL DETECTOR!!')
|
|
},
|
|
destroyBall: function() {
|
|
|
|
}
|
|
createNewBall: function() {
|
|
|
|
}
|
|
};
|
|
|
|
return new BallDetctor();
|
|
}); |