mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 03:37:17 +02:00
when doing a parenting grab, zero velocity
This commit is contained in:
parent
5f6e608207
commit
be001a652f
1 changed files with 3 additions and 1 deletions
|
@ -1922,7 +1922,9 @@ function MyController(hand) {
|
||||||
var handJointIndex = MyAvatar.getJointIndex(this.hand === RIGHT_HAND ? "RightHand" : "LeftHand");
|
var handJointIndex = MyAvatar.getJointIndex(this.hand === RIGHT_HAND ? "RightHand" : "LeftHand");
|
||||||
var reparentProps = {
|
var reparentProps = {
|
||||||
parentID: MyAvatar.sessionUUID,
|
parentID: MyAvatar.sessionUUID,
|
||||||
parentJointIndex: handJointIndex
|
parentJointIndex: handJointIndex,
|
||||||
|
velocity: {x: 0, y: 0, z: 0},
|
||||||
|
angularVelocity: {x: 0, y: 0, z: 0}
|
||||||
};
|
};
|
||||||
if (hasPresetPosition) {
|
if (hasPresetPosition) {
|
||||||
reparentProps["localPosition"] = this.offsetPosition;
|
reparentProps["localPosition"] = this.offsetPosition;
|
||||||
|
|
Loading…
Reference in a new issue