JustInvoke / Randomation-Vehicle-Physics

Vehicle physics system for the Unity engine.
https://justinvoke.com/game-assets/#randomation-vehicle-physics
864 stars 184 forks source link

Vehicle damage percent/ health bar #45

Closed salvadorc17 closed 4 years ago

salvadorc17 commented 4 years ago

Hi will be good to have a vehicle damage percent value, or health bar that show how much damaged is it and restores after repared.

JustInvoke commented 4 years ago

Sorry for the late reply, I've been busy with school.

The Motor class has a hidden variable called health that can roughly represent the damage amount for a vehicle, since it depends on the motor to run. The health ranges from 0 to 1.