i think the newer cars in beam ng drive should have anti collision warning systems. i think it would add more emersion into the game and be more realistic.
It looks like its actually possible to implement this with not much fuss since there is a raycasting function: Code: --Returns distance to the nearest collision box --If no object hit, it returns "distance" parameter castRayStatic(Point3F rayStart, Point3F rayDir, float distance) So you can pair this with some physics kinematic equations to figure out when the car should brake and I might even try making since this would be cool to have, if no one else is gonna make it.
I made some progress on this but I ended up using a different raycasting function, due to limitations with the former one. Code: --Function only avaliable from GameEngine Lua --Returns closest object in path of ray and gives info such as distance to object, normal vector of object's face hit, vec3 position hit, and object's data function castRay(vec3 origin, vec3 target, boolean includeTerrain, boolean renderGeometry) And so it took a bit more time than expected to get a working prototype. Anyways, here's a little demonstration of it working!
woah i was thinking about a more rudamentary funciton of doing it, by just having some nodes out in front of the car that wont get damaged, and you just detect when one has been hit and slow the car down. this is much nicer. You could implement parking sensors with this as well with some simple lua.
Thanks! Although the downside of this is that if I want to detect smaller objects, I will have to cast a bunch of rays to mimic a radar system which may cause quite a bit of lag! I'm gonna also add a UI app that will be used to warn you when you are getting close to an obstacle. Parking sensors sounds like a good idea to add as well and visualizing it with a UI app, although I'm quite newbie with HTML .
Beeping would be nice too. Just a simple .ogg you play realistically at the different levels of closeness. (If that makes any sense.)
i love the prototype and i think it's beautiful. i think the beam ng drive team should hire modders to the team.
Woah this is just as interesting as airbags. Maybe this system combined with the parking sensors could be added to the html stuff of the cars in-game screens, which could be made to be like in the raven r20 car, which has useable screens etc. This is amazing!
This is so cool. The devs should definitely add this feature and airbags feature and there should be an option to turn it off. They should look into mod creators like the guy who created the ETK S Series and the ETK 1300 Series.
Speaking of, I wonder if the ETK S series would still work.. probably not.. I miss having a German luxury sedan in game.. we've got the German wagons and coupés.. Etk800 and K series, the older ETK 2400 series.. is there gonna be a luxury sedan coming soon? Any ideas? --- Post updated --- Plus, this needs staff pick.
Well you're in luck, just search ETK S Series and click the subscribe button to download, it will say a message that if you click yes you will be directed to Beamng. Click yes and voila it's there. Hoped this helps. By the way this mod works fine. No bugs, except one with the gauges, it has been there even before the mod went outdated.
I guess the gauges are on an outdated html or stuff, I'm not sure how it works, but maybe a drivetrain swap fron the ETK 800 and a bit of tweaking like the engine sounds, interior sound deadening, air/adaptive suspension maybe, and it would be like new I guess.. I think the jbeam is uh, fine??, on it?
Yes, I think the jbeam is fine. Unfortunately the mod creator NinetyNine I think gave up on making mods and there will most likely never be another update to this mod unless he comes back.
I'm actually gonna be working on just the parking sensors now and EcoNadder77 is gonna be working on the forward collision mitigation system. You can check out his progress here: https://www.beamng.com/threads/deve...contributing-post.1575/page-1385#post-1265088 https://www.beamng.com/threads/deve...contributing-post.1575/page-1386#post-1265481