mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +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 reparentProps = {
|
||||
parentID: MyAvatar.sessionUUID,
|
||||
parentJointIndex: handJointIndex
|
||||
parentJointIndex: handJointIndex,
|
||||
velocity: {x: 0, y: 0, z: 0},
|
||||
angularVelocity: {x: 0, y: 0, z: 0}
|
||||
};
|
||||
if (hasPresetPosition) {
|
||||
reparentProps["localPosition"] = this.offsetPosition;
|
||||
|
|
Loading…
Reference in a new issue