mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Improvements to openvr code
- Overlays are implemented (sans input for the moment) - Fixed a problem where the movemanager was using the wrong values for hmd rotation & position
This commit is contained in:
parent
185fde8ea4
commit
da6bcbeb2b
13 changed files with 380 additions and 32 deletions
|
|
@ -1450,9 +1450,8 @@ bool ActionMap::processAction(const InputEventInfo* pEvent)
|
|||
}
|
||||
else
|
||||
{
|
||||
// Handle rotation (QuatF)
|
||||
QuatF quat(pEvent->fValue, pEvent->fValue2, pEvent->fValue3, pEvent->fValue4);
|
||||
AngAxisF aa(quat);
|
||||
// Handle rotation (AngAxisF)
|
||||
AngAxisF aa(Point3F(pEvent->fValue, pEvent->fValue2, pEvent->fValue3), pEvent->fValue4);
|
||||
aa.axis.normalize();
|
||||
argv[1] = Con::getFloatArg( aa.axis.x );
|
||||
argv[2] = Con::getFloatArg( aa.axis.y );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue