made requested changes

This commit is contained in:
druiz17 2017-10-10 10:54:56 -07:00
parent a179df29fb
commit 013e15c9a2
2 changed files with 2 additions and 2 deletions

View file

@ -346,7 +346,7 @@ Script.include("/~/system/libraries/controllers.js");
Entities.callEntityMethod(this.grabbedThingID, "releaseGrab", args);
if (this.madeDynamic) {
var props = Entities.getEntityProperties(this.grabbedThingID, ["dynamic", "localVelocity"]);
var props = {};
props.dynamic = false;
props.localVelocity = {x: 0, y: 0, z: 0};
Entities.editEntity(this.grabbedThingID, props);

View file

@ -427,7 +427,7 @@ Grabber.prototype.releaseEvent = function(event) {
}
if (this.madeDynamic) {
var entityProps = Entities.getEntityProperties(this.entityID, ["dynamic", "localVelocity"]);
var entityProps = {};
entityProps.dynamic = false;
entityProps.localVelocity = {x: 0, y: 0, z: 0};
Entities.editEntity(this.entityID, entityProps);