So attachment to a SC3 vessel is not possible ?
Thanks. Sure but there are specific vehicles that have advanced steering like 360 steering (6 wheel). I will look into it.
I have not tried a vehicle with a trailer. I guess the trailer wheels turn also?
So if set to true it will not follow the hills,....
I have it set as False and the vessel is upside down in the ground?
CreateDock(_V(-1.352, 2.40, -1.132), _V(0, 1, 0), _V(0, 0, -1));
void MOLAB::SeparateMMU(void)
{
if (HATCH_proc > .8){
// Create MMU at docking port
DOCKHANDLE hDock = GetDockHandle(0);
if (GetDockStatus(hDock)) return; // something is already attached to this docking port
int i;
char name[256];
OBJHANDLE hVessel;
for (i = 0;; i++) {
sprintf(name, "%s-MMU-%d", GetName(), i + 1);
hVessel = oapiGetVesselByName(name);
if (!hVessel) break;
}
VESSELSTATUS vs;
EVA = 1;
GetStatus(vs);
hMMU = oapiCreateVessel(name, "GV_UMMU", vs);
Dock(hMMU, 0, 0, 1);
oapiSetFocusObject(hMMU);
}
}
ClassName=GeneralVehicle
Module=GeneralVehicle
Empty_Mass = 100 ;[kg] empty mass (almost unused)
Mesh = ADVANCEDAPOLLO ; meshname
Cockpit_pos = 0 .456 .254 ; [m m m] Position of the cockpit camera
Acceleration = 1.15 ; [G] Acceleration factor expressed in Gs
Brake = 2 ; [G] Deceleration factor expressed in Gs
Max_Speed = 10 ; [km/h] Max Speed
Reverse_Max_Speed = 50 ; [km/h] Max Speed in Reverse
Steering_Speed = .1 ; Steering wheel velocity factor
Full_Pedal_Time = 2 ; [s] seconds from the beginning of pressing of Acceleration or Brake and the full power is applied
Max_Steering_Angle = 30 ; [DEG] Max steering of the front wheels per side
Height_From_Ground = 1.9 ; [m] height of the center of gravity from the ground
Always_Upright = FALSE ;if set to TRUE vehicle will always remain parallel to the ideal ground, without following terrain's inclinations
Four_Wheels_Steering = FALSE ;if true also rear wheels will steer
;Mesh Groups - just specify using space between them
;Rear_Right_Groups = 5
;Rear_Left_Groups = 6
;Front_Right_Groups = 0 3
;Front_Left_Groups = 1 4
;Middle_Axles_N = 1
;Middle_Groups_1 = 5 7 0 10
Camber = 0 ;[DEG] camber angle of the front wheels, no camber is implemented for rear wheels.
BEGIN_DOCKLIST
0 2 0 0 -1 0 0 0 1 588
END_DOCKLIST
EVAGUY:GV_UMMU
STATUS Orbiting Moon
RPOS 911705.615 1175612.957 893562.399
RVEL -2.7595 -0.3875 2.1751
AROT -97.704 -54.640 65.201
AFCMODE 7
IDS 0:588 10
NAVFREQ 0 0
END
void MOLAB::SeparateMMU(void)
{
if (HATCH_proc > .8){
OBJHANDLE OBLIVIONBIKE;
VESSELSTATUS2 vs;
vs.version = 2;
vs.flag = 0;
GetStatusEx(&vs);
VECTOR3 ofs = _V(-1.5, 1.9, -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 *OBLIVIONBIKE_vessel;
OBLIVIONBIKE = oapiCreateVesselEx("EVAGUY", "GV_UMMU", &vs);
OBLIVIONBIKE_vessel = oapiGetVesselInterface(OBLIVIONBIKE);
}
}
Inverse_Rear_Steering = TRUE
I understand... no probleme, take all time you need... :thumbup:well I went around the code and made some tests
I do not plan to update the module soon, because I'm deeply in something else at the moment (I'm back at coding and working on the space network).