always zero velocity on far-grab release of non-dynamic

This commit is contained in:
Andrew Meadows 2018-10-31 10:20:21 -07:00
parent 90e944f130
commit 225e8e0556

View file

@ -262,7 +262,9 @@ Script.include("/~/system/libraries/controllers.js");
if (this.thisFarGrabJointIsParent(endProps)) {
Entities.editEntity(this.targetEntityID, {
parentID: this.previousParentID[this.targetEntityID],
parentJointIndex: this.previousParentJointIndex[this.targetEntityID]
parentJointIndex: this.previousParentJointIndex[this.targetEntityID],
localVelocity: {x: 0, y: 0, z: 0},
localAngularVelocity: {x: 0, y: 0, z: 0}
});
}