Project Vehicle Handling Simulation in Orbiter2016

Well i have in the GV_LERWHEEL cfg :
Listen_from=LERBODY

LERBODY is the cfg for the body. But no movement in the GV_LERWHEELS. I guess the display have not be seen in the vessel sitting in?

this works for me:
GV_LERWHEELS.cfg
Code:
ClassName=GeneralVehicle
Module=GeneralVehicle

Empty_Mass = 1000			;[kg] empty mass (almost unused)
Mesh = LER\LERWHEELS				; meshname
Cockpit_pos = -0.5 0.63 1.5	; [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 = 200				; [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 = 2.166 	; [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 = TRUE ;if true also rear wheels will steer

;Mesh Groups - just specify using space between them

Rear_Right_Groups = 6 2
Rear_Left_Groups = 11 3
Front_Right_Groups = 8 1
Front_Left_Groups = 9 4
Middle_Right_Groups = 7 5
Middle_Left_Groups = 0 10


Camber = 0							;[DEG] camber angle of the front wheels, no  camber is implemented for rear wheels.

Listen_From = LERBODY

BEGIN_ATTACHMENT
C 0 0 0  0 1 0  0 0 1  BDY
END_ATTACHMENT

scenario
Code:
LERWHEELS:GV_LERWHEELS
  STATUS Landed Moon
  POS -33.4747431 41.0690295
  HEADING 236.50
  ALT 2.166
  AROT -155.665 8.575 152.402
  AFCMODE 7
  NAVFREQ 0 0
END
LERBODY:LERBODY
  STATUS Landed Moon
  BASE Brighton Beach:1
  POS -33.4374968 41.1184013
  HEADING 66.99
  ALT 2.233
  AROT 17.341 -16.521 43.998
  ATTACHED 0:1,LERWHEELS
  AFCMODE 7
  IDS 0:560 100 1:564 100
  NAVFREQ 0 0
END

Anyway I'm about to finish the doc, and everything will be detailed there
 
Ok. I had to change the attachment of the lerbody otherwise the body was upside down.
Code:
BEGIN_ATTACHMENT
P 0.0 0 0  0 -1 0  0 0 1  WHL
END_ATTACHMENT

But when in the LERBODY Should I be able to press 8 to move. Nothing happens. When I switch to lerwheels it moves but only the front and rear wheels
 
Ok. I had to change the attachment of the lerbody otherwise the body was upside down.
Code:
BEGIN_ATTACHMENT
P 0.0 0 0  0 -1 0  0 0 1  WHL
END_ATTACHMENT

But when in the LERBODY Should I be able to press 8 to move. Nothing happens. When I switch to lerwheels it moves but only the front and rear wheels

you haven't updated the GeneralVehicle dll. I attached it to the post with the cfg inputs.

Here: https://www.orbiter-forum.com/showthread.php?p=559659&postcount=114
 
Yes. I had downloaded and installed.
Code:
BEGIN_DESC
Current scenario state


Contains the latest simulation state.
END_DESC

BEGIN_ENVIRONMENT
  System Sol
  Date MJD 54724.0032667817
  Help CurrentState_img
END_ENVIRONMENT

BEGIN_FOCUS
  Ship LERBODY
END_FOCUS

BEGIN_CAMERA
  TARGET LERBODY
  MODE Extern
  POS 2.943197 -62.842853 -23.061552
  TRACKMODE TargetRelative
  FOV 62.00
END_CAMERA

BEGIN_HUD
  TYPE Surface
END_HUD

BEGIN_SHIPS
LER:GV_LER
  STATUS Landed Moon
  POS 19.2608840 0.2109052
  HEADING 1.47
  ALT 2.166
  AROT 88.715 0.779 108.977
  AFCMODE 7
  NAVFREQ 0 0
END
f1:GeneralVehicle
  STATUS Landed Moon
  POS 19.2609262 0.2111265
  HEADING 280.36
  ALT 0.599
  AROT 168.957 -20.060 92.881
  AFCMODE 7
  NAVFREQ 0 0
END
Pete:GV_Pete
  STATUS Landed Moon
  POS 19.2614683 0.2112464
  HEADING 280.24
  ALT 0.001
  AROT 169.109 -19.795 93.218
  AFCMODE 7
  NAVFREQ 0 0
END
LERWHEELS:GV_LERWHEELS
  STATUS Landed Moon
  POS -33.4375000 41.1184070
  HEADING 36.67
  ALT 2.083
  AROT 37.443 6.375 39.240
  AFCMODE 7
  NAVFREQ 0 0
END
LERBODY:LERBODY
  STATUS Landed Moon
  POS -33.4375000 41.1184070
  HEADING 66.56
  ALT 2.233
  AROT 17.005 -15.663 41.362
  ATTACHED 0:1,LERWHEELS
  AFCMODE 7
  IDS 0:560 100 1:564 100
  NAVFREQ 0 0
END
END_SHIPS

lerwheels cfg
Code:
ClassName=GeneralVehicle
Module=GeneralVehicle

Empty_Mass = 1000			;[kg] empty mass (almost unused)
Mesh = LER\LERWHEELS				; meshname
Cockpit_pos = -0.5 0.63 1.5	; [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 = 200				; [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 = 2.166 	; [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 = TRUE ;if true also rear wheels will steer

;Mesh Groups - just specify using space between them

Rear_Right_Groups = 6 2
Rear_Left_Groups = 11 3
Front_Right_Groups = 8 1
Front_Left_Groups = 9 4
Middle_Right_Groups = 7 5
Middle_Left_Groups = 0 10


Camber = 0							;[DEG] camber angle of the front wheels, no  camber is implemented for rear wheels.

Listen_From = LERBODY

BEGIN_ATTACHMENT
C 0 0 0  0 1 0  0 0 1  BDY
END_ATTACHMENT

lerbody:
Code:
; === Configuration file for vessel class Adapter ===
ClassName = LERBODY
Module = LERBODY
; === Docking ports ===
BEGIN_DOCKLIST
2 -.68 .485  -1 0 0    0 1 0    560
-2 -.68 .485   1 0 0    0 1 0    564
END_DOCKLIST

BEGIN_ATTACHMENT
P 0.0 0 0  0 -1 0  0 0 1  BDY
END_ATTACHMENT


---------- Post added at 07:22 AM ---------- Previous post was at 06:52 AM ----------

I had to turn on NUMLOCK to control the wheels
 
Yes. I had downloaded and installed.
I had to turn on NUMLOCK to control the wheels

Yes, since Windows7 (not with XP) you have to turn off NUMLOCK (VERRNUM in French) for the animations (spacecraft) and turn on to be able to drive the vehicle...
(For the spacecraft animations you have to press [left-Shift]+[num] )

Remark :
- With Spacecraft3 you can use only the numpad keys
- With Spacecraft4 you can use else the numpad keys or the Keys on the top of the keyboard.


@Fred18 : may be you can specify this in your doc ? :lol:
 
@Fred18 : may be you can specify this in your doc ? :lol:

yup, I will

@gattis:

I gave you a wrong cfg, sorry, the meshgroups part for the lerwheels must be:
Code:
;Mesh Groups - just specify using space between them

Rear_Right_Groups = 6 2
Rear_Left_Groups = 11 3
Front_Right_Groups = 8 1
Front_Left_Groups = 9 4
Middle_Axles_N = 1
Middle_Groups_1 = 5 7 0 10


---------- Post added at 17:07 ---------- Previous post was at 14:15 ----------

that's it, we are online

https://www.orbithangar.com/searchid.php?ID=7082

thanks everybody for the support!

have a read of the documentation and let me know if everything works and is clear.

Code and usage of the code policy is included.

I'll try to see if there is a way to add sound in the next weeks, but for now that's it :tiphat:

EDIT: I had to reupload the addon because of an OrbitHangar issue, I updated also the link here
 
Last edited:
I'll try to see if there is a way to add sound in the next weeks, but for now that's it
:banana::banana::banana::hotcool::hotcool::coffee:


There is a way to have some sound (it is not perfect, but until you find a way to have the sound...) :lol:

1) I linked the engine sound (in the Spacecraft.ini file) with the RCS control, so when you press "8" or "2" (but also "4" and "6")
you can ear the motor sound... but not when the vehicule is moving without no pressing key....(it is better than nothing).
With (in the [SOUND] Spacecraft.ini file section) :
RCS_THRUST_ATTACK=none
RCS_THRUST_SUSTAIN=Sound\_CustomVesselsSounds\Motor.wav

2) And also I linked the engine sound (still in the "Spacecraft ini file") with the MAIN_THRUST control (no speed effect for the car),
and so if you press "NumPad +" you can ear the motor sound but if you stop the car, you have also to cut off the Main thrust...
With (in the [SOUND] Spacecraft.ini file section) :
MAIN_THRUST=Sound\_CustomVesselsSounds\Motor.wav
 
I was thinking of maybe a unicycle motion, but without the wheels. That way you could have movement for things without wheels, such as astronauts walking or hopping, crane and train movement.
 
I was thinking of maybe a unicycle motion, but without the wheels. That way you could have movement for things without wheels, such as astronauts walking or hopping, crane and train movement.

It's already there, I think there's also a note in the docs: simply don't define the groups of the wheels and that's it, your mesh will move around freely
 
Back
Top