A form of crash detection
(4 posts, started )
A form of crash detection
I am aware that there is no easy way to detect this, so I thought that I would see if anybody has found a reliable way of detecting this through the current version of InSim.

I want to be able to detect if someone has "crashed". By crashed I mean that they are no longer on their wheels.

I thought about checking to see if the Z co-ordinates, direction and heaing go crazy or do something unexpected. This would work for large crashes where the car goes flying as high as the pidgeons - however I don't think this would work very well if they just clip the curb wrong and ends up on their side.

If this is not detectable with any of the current MCI/CompCar packets, I would like something to be added into them, maybe a boolean saying if they are on wheels, or not on wheels.

Thanks in advance if anybody has any ideas on this!
- Mark
Outsim packets report roll as well - so if you get an extreme amount or roll for a prolonged period of time with reduced (or zero) speed then it's a good indication the car is on it's side.
Quote from xaotik :Outsim packets report roll as well - so if you get an extreme amount or roll for a prolonged period of time with reduced (or zero) speed then it's a good indication the car is on it's side.

Thats no good server side, as outsim / outgauge is client side only.

It might be worth looking at the AngVel, in combination with speed and heading to see if they alter within a certain amount of time after a sudden decrease in speed. This would avoid detecting people who stop and sit at the side of the track, and would catch a lot of crashes, if you can tweak it right. Combine that with detecting if anyones been in contact through positioning packets, and potentially also the position and it's rate of change, and you *might* have a working solution.

It's mad, a lot of effort, but it could work quite well.

I suppose really you want the vehicles orientation to the surface of the track. i.e. the angle of the Y axis (vertical) of the car to the X (horizontal) axis of the ground.

A form of crash detection
(4 posts, started )
FGED GREDG RDFGDR GSFDG