So I am trying to spawn a landed EVA guy aka vessel. In the shuttle the vessel is made a docked. But I want a vessel made and placed on the ground upright like UMMU.
So if the door is open make a vessel
this is where to put the vessel, right
But it makes the vessel but the vessel is not landed but orbiting. on the ground shaking about
Code:
void LER2016::SeparateMMU(void)
{
if (DOOR0_proc > .8){
OBJHANDLE EVAGUY;
VESSELSTATUS2 vs;
vs.version = 2;
vs.flag = 0;
GetStatusEx(&vs);
VECTOR3 ofs = _V(-1.5, -2, -1.5);
VECTOR3 rofs, rvel = { vs.rvel.x, vs.rvel.y, vs.rvel.z };
VECTOR3 vel = { 0, 0, 0 };
Local2Rel(ofs, vs.rpos);
GlobalRot(vel, rofs);
vs.rvel.x = rvel.x + rofs.x;
vs.rvel.y = rvel.y + rofs.y;
vs.rvel.z = rvel.z + rofs.z;
vs.vrot.x = 0.00;
vs.status = 0;
VESSEL *EVAGUY_vessel;
EVAGUY = oapiCreateVesselEx("EVAGUY", "evaguy2016", &vs);
EVAGUY = oapiGetVesselInterface(EVAGUY);
}
}
Code:
VECTOR3 ofs = _V(-1.5, -2, -1.5);
But it makes the vessel but the vessel is not landed but orbiting. on the ground shaking about