mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 13:44:32 +02:00
Make lasers scale with avatar
This commit is contained in:
parent
ed5082e5d4
commit
53e1c57e3b
2 changed files with 5 additions and 0 deletions
|
@ -412,6 +412,7 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js");
|
||||||
triggers: [{action: Controller.Standard.LTClick, button: "Focus"}, {action: Controller.Standard.LTClick, button: "Primary"}],
|
triggers: [{action: Controller.Standard.LTClick, button: "Focus"}, {action: Controller.Standard.LTClick, button: "Primary"}],
|
||||||
posOffset: getGrabPointSphereOffset(Controller.Standard.LeftHand, true),
|
posOffset: getGrabPointSphereOffset(Controller.Standard.LeftHand, true),
|
||||||
hover: true,
|
hover: true,
|
||||||
|
scaleWithAvatar: true,
|
||||||
distanceScaleEnd: true,
|
distanceScaleEnd: true,
|
||||||
hand: LEFT_HAND
|
hand: LEFT_HAND
|
||||||
});
|
});
|
||||||
|
@ -421,6 +422,7 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js");
|
||||||
triggers: [{action: Controller.Standard.RTClick, button: "Focus"}, {action: Controller.Standard.RTClick, button: "Primary"}],
|
triggers: [{action: Controller.Standard.RTClick, button: "Focus"}, {action: Controller.Standard.RTClick, button: "Primary"}],
|
||||||
posOffset: getGrabPointSphereOffset(Controller.Standard.RightHand, true),
|
posOffset: getGrabPointSphereOffset(Controller.Standard.RightHand, true),
|
||||||
hover: true,
|
hover: true,
|
||||||
|
scaleWithAvatar: true,
|
||||||
distanceScaleEnd: true,
|
distanceScaleEnd: true,
|
||||||
hand: RIGHT_HAND
|
hand: RIGHT_HAND
|
||||||
});
|
});
|
||||||
|
@ -431,6 +433,7 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js");
|
||||||
posOffset: getGrabPointSphereOffset(Controller.Standard.LeftHand, true),
|
posOffset: getGrabPointSphereOffset(Controller.Standard.LeftHand, true),
|
||||||
triggers: [{action: Controller.Standard.LTClick, button: "Focus"}, {action: Controller.Standard.LTClick, button: "Primary"}],
|
triggers: [{action: Controller.Standard.LTClick, button: "Focus"}, {action: Controller.Standard.LTClick, button: "Primary"}],
|
||||||
hover: true,
|
hover: true,
|
||||||
|
scaleWithAvatar: true,
|
||||||
distanceScaleEnd: true,
|
distanceScaleEnd: true,
|
||||||
hand: LEFT_HAND
|
hand: LEFT_HAND
|
||||||
});
|
});
|
||||||
|
@ -441,6 +444,7 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js");
|
||||||
posOffset: getGrabPointSphereOffset(Controller.Standard.RightHand, true),
|
posOffset: getGrabPointSphereOffset(Controller.Standard.RightHand, true),
|
||||||
triggers: [{action: Controller.Standard.RTClick, button: "Focus"}, {action: Controller.Standard.RTClick, button: "Primary"}],
|
triggers: [{action: Controller.Standard.RTClick, button: "Focus"}, {action: Controller.Standard.RTClick, button: "Primary"}],
|
||||||
hover: true,
|
hover: true,
|
||||||
|
scaleWithAvatar: true,
|
||||||
distanceScaleEnd: true,
|
distanceScaleEnd: true,
|
||||||
hand: RIGHT_HAND
|
hand: RIGHT_HAND
|
||||||
});
|
});
|
||||||
|
|
|
@ -269,6 +269,7 @@ function Grabber() {
|
||||||
joint: "Mouse",
|
joint: "Mouse",
|
||||||
filter: Picks.PICK_ENTITIES,
|
filter: Picks.PICK_ENTITIES,
|
||||||
faceAvatar: true,
|
faceAvatar: true,
|
||||||
|
scaleWithAvatar: true,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
renderStates: renderStates
|
renderStates: renderStates
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue