kick by hand controller

This commit is contained in:
howard-stearns 2016-10-10 13:47:08 -07:00
parent 2b8765b47e
commit 1051c068e1

View file

@ -193,7 +193,7 @@ var triggerMapping = Controller.newMapping(Script.resolvePath('') + '-click');
function controllerComputePickRay(hand) {
var controllerPose = getControllerWorldLocation(hand, true);
if (controllerPose.valid) {
return { origin: controllerPose.position, direction: controllerPose.orientation };
return { origin: controllerPose.position, direction: Quat.getUp(controllerPose.orientation) };
}
}