when doing a parenting grab, zero velocity

This commit is contained in:
Seth Alves 2016-07-19 11:50:53 -07:00
parent 5f6e608207
commit be001a652f

View file

@ -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;