mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 23:14:34 +02:00
kick by hand controller
This commit is contained in:
parent
2b8765b47e
commit
1051c068e1
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ var triggerMapping = Controller.newMapping(Script.resolvePath('') + '-click');
|
||||||
function controllerComputePickRay(hand) {
|
function controllerComputePickRay(hand) {
|
||||||
var controllerPose = getControllerWorldLocation(hand, true);
|
var controllerPose = getControllerWorldLocation(hand, true);
|
||||||
if (controllerPose.valid) {
|
if (controllerPose.valid) {
|
||||||
return { origin: controllerPose.position, direction: controllerPose.orientation };
|
return { origin: controllerPose.position, direction: Quat.getUp(controllerPose.orientation) };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue