Mosquito in your VR hangar.
Purchased the Mosquito module over the holidays and "borrowed" permanently, my sons Oculus Quest 2. Wow, what a game changer from using the head tracker. Used this forum extensively to help me understand the use of the DCS 3D modeler and the editing of the .lua script. The result is below if any of you fancy standing underneath the wing. I tailored the VR position and the crew arguments so that you can look up into the cockpit and the crew is looking in your direction.
null
package.path = package.path ..';./Scripts/DemoScenes/?.lua;'
local sceneEnvironment = require("demosceneEnvironment")
scene = {} -- сюда кладем все созданные объекты
function loadScene(scenePtr)
sceneAPI = sceneEnvironment.getInterface(scenePtr)
sceneAPI:setUpdateFunc('sceneVRUpdate')
scene.m = sceneAPI:addModel("MosquitoFBMkVI_lod00", 2.0, 2.4, 0.8);
scene.m.transform:setOrient(0, 0, 15);
scene.m:setArgument(0, 1);
scene.m:setArgument(3, 1);
scene.m:setArgument(5, 1);
scene.m:setArgument(349, 1); -- copilot window open
scene.m:setArgument(38, 0.900); -- pilot hatch open
scene.m:setArgument(459, -1); -- pilot hit
scene.m:setArgument(460, 0.688); -- copilot hit
scene.m:setArgument(420, 0.887); -- pilot throttle hand forward
scene.m:setArgument(337, 0.600); -- copilot head rotate
scene.m:setArgument(99, -0.600); -- pilot head tilt
scene.m:setArgument(39, 0.775); --pilot head rotate
local cam_level = 1.7
scene.cam = sceneAPI:addCamera(4, cam_level , 2)
scene.cam:setFarClip(1000.0)
scene.cam:setFov(100)
scene.cam.transform:lookAtPoint(-5.0, cam_level, 4);
scene.flr = sceneAPI:addModel("shelter_floor", 0,0,0);
scene.flr:drawToEnvironment(true);
scene.flr.transform:scale(2,1.5,1.5);
scene.sh = sceneAPI:addModel("ukrytie", 0,0,0);
scene.sh:drawToEnvironment(true);
scene.sh.transform:scale(2,2,2);
scene.L1 = sceneAPI:addLightOmni(0, 25, 0, 1,0.8,0.5);
scene.L1:setRadius(200);
scene.L1:setAmount(1);
scene.cam:setActive()
end
--[0;1]
local function pingpong(length, t)
local tt = (t%length)*2/length
if tt>1 then tt = 2-tt end
return tt
end
function sceneVRUpdate(t, dt)
end