History

use a ray from the near clip for action ray

Stephen Birarda committed 12 years ago

Commit f53455e1 parent 84521826 files · +17 −6Browse files

Showing the changes to interface/src/scripting/JoystickScriptingInterface.cpp (1 of 6 files). Show all

Unified · Split

interface/src/scripting/JoystickScriptingInterface.cpp+2−1
@@ -129,7 +129,8 @@ void JoystickScriptingInterface::update() { · 128 unmodified lines
129 : HFActionEvent::endType();129 : HFActionEvent::endType();
130 130
131 // global action events fire in the center of the screen131 // global action events fire in the center of the screen
132 HFActionEvent actionEvent(actionType, Application::getInstance()->getCamera()->getPickRay());132 HFActionEvent actionEvent(actionType,
133 Application::getInstance()->getViewFrustum()->computePickRay(0.5f, 0.5f));
133 qApp->sendEvent(qApp, &actionEvent);134 qApp->sendEvent(qApp, &actionEvent);
134 }135 }
135 136