content/hifi-content/Experiences/Releases/placeSpecificContent/theSpot/plates/2019-02-11_13-38-53/ShatterPlatePieceServer.js
2022-02-13 23:16:46 +01:00

39 lines
758 B
JavaScript

//
// shatterPlatePieceServer.js
//
// Author: Milad Nazer
// Copyright High Fidelity 2019
//
// Licensed under the Apache 2.0 License
// See accompanying license file or http://apache.org/
//
//
/* globals Entities, Uuid */
(function() {
var _entityID;
var LIFETIME = 10;
var Plate = function(){
};
Plate.prototype = {
remotelyCallable : ['makeFragile'],
preload: function(entityID) {
_entityID = entityID;
},
makeFragile: function() {
Entities.editEntity(_entityID, {
collidesWith: "static,dynamic,kinematic",
lifetime: LIFETIME
});
}
};
return new Plate();
});