mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:22:57 +02:00
made requested changes
This commit is contained in:
parent
a179df29fb
commit
013e15c9a2
2 changed files with 2 additions and 2 deletions
|
@ -346,7 +346,7 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
Entities.callEntityMethod(this.grabbedThingID, "releaseGrab", args);
|
Entities.callEntityMethod(this.grabbedThingID, "releaseGrab", args);
|
||||||
|
|
||||||
if (this.madeDynamic) {
|
if (this.madeDynamic) {
|
||||||
var props = Entities.getEntityProperties(this.grabbedThingID, ["dynamic", "localVelocity"]);
|
var props = {};
|
||||||
props.dynamic = false;
|
props.dynamic = false;
|
||||||
props.localVelocity = {x: 0, y: 0, z: 0};
|
props.localVelocity = {x: 0, y: 0, z: 0};
|
||||||
Entities.editEntity(this.grabbedThingID, props);
|
Entities.editEntity(this.grabbedThingID, props);
|
||||||
|
|
|
@ -427,7 +427,7 @@ Grabber.prototype.releaseEvent = function(event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.madeDynamic) {
|
if (this.madeDynamic) {
|
||||||
var entityProps = Entities.getEntityProperties(this.entityID, ["dynamic", "localVelocity"]);
|
var entityProps = {};
|
||||||
entityProps.dynamic = false;
|
entityProps.dynamic = false;
|
||||||
entityProps.localVelocity = {x: 0, y: 0, z: 0};
|
entityProps.localVelocity = {x: 0, y: 0, z: 0};
|
||||||
Entities.editEntity(this.entityID, entityProps);
|
Entities.editEntity(this.entityID, entityProps);
|
||||||
|
|
Loading…
Reference in a new issue