I'd like to control brake parameters from vehicle LUA, i tried with a controller defined in the jbeam where "pressureWheels" is defined but i did not find how to access "pressureWheels" parameters from LUA. Is it something doable ? Thanks a lot for helping.
Wheels are accessible with wheels.wheels: Code: for i = 0, tableSizeC(wheels.wheels) - 1 do local wheel = wheels.wheels[i] end You can find the fields each wheel has in "lua\vehicle\wheels.lua" from line 919 onwards or with the dump() function.
Thanks a lot. I did try to use that but was not able to get what i wanted. I would want to modify only those parameters for rear and front wheels : parkingTorque brakeTorque enableABS absSlipRatioTarget For differentials control i was able to use a controller, i would like to do the same thing for brakes. Is it possible ? Edit : I was able to control brakes through wheels.wheelRotators. Sample code found inside linelock.lua.