I have a feature suggestion considering the thread about AI controls: https://www.lfs.net/forum/post/2114646
It would be a nice complementary feature if we could cast ray(s) using InSim packets into touchable surfaces in the game to measure distance and/or test for a hit from a point and a vector. Programmers could use this data for machine learning algorithms, simulating parking sensors, or simulating emergency braking.
Programmer Info, LYT format, NOTE3: "The ground check is performed with a test ray starting from 2 meters above Zbyte"
When we reset our vehicle, casting operation apparently skips the vehicles underneath and hits the ground instead. Either track surface or layout object. This being called a "ground check" tells me that it excludes vehicles. Whereas, for example, tyre physics do take into account vehicle hitboxes as well.
If it is not tedious to implement, it would be nice to have an option to specify what kind of surfaces the ray can intersect with: track, layout, vehicle, etc. For example, an emergency braking system might only trigger on vehicles (radar, metal surfaces), while parking sensors would trigger on any surface (sonar, sound waves would reflect off of any surface).
It would be a nice complementary feature if we could cast ray(s) using InSim packets into touchable surfaces in the game to measure distance and/or test for a hit from a point and a vector. Programmers could use this data for machine learning algorithms, simulating parking sensors, or simulating emergency braking.
Programmer Info, LYT format, NOTE3: "The ground check is performed with a test ray starting from 2 meters above Zbyte"
When we reset our vehicle, casting operation apparently skips the vehicles underneath and hits the ground instead. Either track surface or layout object. This being called a "ground check" tells me that it excludes vehicles. Whereas, for example, tyre physics do take into account vehicle hitboxes as well.
If it is not tedious to implement, it would be nice to have an option to specify what kind of surfaces the ray can intersect with: track, layout, vehicle, etc. For example, an emergency braking system might only trigger on vehicles (radar, metal surfaces), while parking sensors would trigger on any surface (sonar, sound waves would reflect off of any surface).