mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
always zero velocity on far-grab release of non-dynamic
This commit is contained in:
parent
90e944f130
commit
225e8e0556
1 changed files with 3 additions and 1 deletions
|
@ -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}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue