26 lines
No EOL
647 B
JavaScript
26 lines
No EOL
647 B
JavaScript
// scramButton.js
|
|
|
|
(function(){
|
|
var _this;
|
|
|
|
var physButton = function() {
|
|
_this = this;
|
|
};
|
|
|
|
physButton.prototype = {
|
|
|
|
preload: function(entityID) {
|
|
_this.entityID = entityID;
|
|
Entities.addAction("slider", _this.entityID, {
|
|
axis: { x: 0, y: 1, z: 0 },
|
|
linearLow: -0.025,
|
|
linearHigh: 0
|
|
});
|
|
}
|
|
// var switchBaseID = Entities.findEntitiesByName("Visual_Object_Mark_scram-base", worldOriginPos, radius);
|
|
// console.log("HELLOOOOOOO ",switchBaseID);
|
|
|
|
};
|
|
|
|
return new physButton;
|
|
}); |