mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 20:35:35 +00:00
Basic port of code
This commit is contained in:
parent
93a36f006f
commit
64b751a7c8
19 changed files with 613 additions and 374 deletions
|
|
@ -752,3 +752,21 @@ vehicleMap.bind( gamepad, btn_b, brake );
|
|||
vehicleMap.bind( gamepad, btn_x, movebackward );
|
||||
// bind exiting the vehicle to a button
|
||||
vehicleMap.bindCmd(gamepad, btn_y,"getout();","");
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Oculus Rift
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
function OVRSensorRotEuler(%pitch, %roll, %yaw)
|
||||
{
|
||||
//echo("Sensor euler: " @ %pitch SPC %roll SPC %yaw);
|
||||
$mvRotZ0 = %yaw;
|
||||
$mvRotX0 = %pitch;
|
||||
$mvRotY0 = %roll;
|
||||
}
|
||||
|
||||
$mvRotIsEuler0 = true;
|
||||
$OculusVR::GenerateAngleAxisRotationEvents = false;
|
||||
$OculusVR::GenerateEulerRotationEvents = true;
|
||||
moveMap.bind( oculusvr, ovr_sensorrotang0, OVRSensorRotEuler );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue