Skip to content

Document that Lenkhebel is not a real steering value on road vehicles - #150

Open
ZackaryH8 wants to merge 1 commit into
space928:mainfrom
ZackaryH8:fix/lenkhebel-wrong-offset-doc
Open

Document that Lenkhebel is not a real steering value on road vehicles#150
ZackaryH8 wants to merge 1 commit into
space928:mainfrom
ZackaryH8:fix/lenkhebel-wrong-offset-doc

Conversation

@ZackaryH8

Copy link
Copy Markdown

Disassembling Omsi.exe shows every real access to TRoadVehicle/TRoadVehicleInst+0x268 (Lenkhebel's offset) as an array-typed field, not a float - writing here has no effect on steering. The value that actually drives steering is OmsiRoadVehicleInst.Inv_LenkRadius (+0x73c), confirmed both as the input to TRoadVehicleInst_CalcFree's per-axle Ackermann geometry and as what the keyboard steering-left/steering-right key handlers directly ramp each frame. Inv_LenkRadius was already correctly wrapped here, just undocumented, so this only adds doc comments cross- referencing the two - Lenkhebel is left unchanged in case some other OmsiMovingMapObjInst subtype genuinely uses that offset.

Disassembling Omsi.exe 2.3 shows every real access to
TRoadVehicle/TRoadVehicleInst+0x268 (Lenkhebel's offset) as an
array-typed field, not a float - writing here has no effect on
steering. The value that actually drives steering is
OmsiRoadVehicleInst.Inv_LenkRadius (+0x73c), confirmed both as the
input to TRoadVehicleInst_CalcFree's per-axle Ackermann geometry and
as what the keyboard steering-left/steering-right key handlers
directly ramp each frame. Inv_LenkRadius was already correctly wrapped
here, just undocumented, so this only adds doc comments cross-
referencing the two - Lenkhebel is left unchanged in case some other
OmsiMovingMapObjInst subtype genuinely uses that offset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant