Watch this video for context (focus on the end):
https://www.facebook.com/TypicalGamer/videos/10153962342029848/
Quick tidbit:
The video confirms that GTA 5 does not use state changes and actually hittests rigid body parts for certain events. In this case, the dead NPC's 'bottom' was touching the driver seat before the car flew off.
The reason why the car blasted in the air was because of the dead NPC's line of sight. His head was tilting upwards so force was applied in that direction. I along with other devs would usually apply force to where the entire BODY/bounds was rotated towards.
Very interesting as a game programmer as these things are usually meh'd upon but Rockstar has gone overboard and has even decided to include these (what we call) 'miniscule and useless' details which we would simplify.
Also interesting is that they forgot to check NPC's health before transitioning into other states
https://www.facebook.com/TypicalGamer/videos/10153962342029848/
Quick tidbit:
The video confirms that GTA 5 does not use state changes and actually hittests rigid body parts for certain events. In this case, the dead NPC's 'bottom' was touching the driver seat before the car flew off.
The reason why the car blasted in the air was because of the dead NPC's line of sight. His head was tilting upwards so force was applied in that direction. I along with other devs would usually apply force to where the entire BODY/bounds was rotated towards.
Very interesting as a game programmer as these things are usually meh'd upon but Rockstar has gone overboard and has even decided to include these (what we call) 'miniscule and useless' details which we would simplify.
Also interesting is that they forgot to check NPC's health before transitioning into other states