i have a vehicle that you can drive in the game its a 3d zombie game kinda like call of duty except im trying to add vehicles but i want it where if you run into a zombie at a higer speed it will do more damage how do i do this?
Multiply your damage with your speed factor. For example, if your car does 100 damage at 0 mph, you can say, it will make 100 % more damage at 100 mph. So, you could do something like:
damage = (damage / 100 ) * ( 100 + speed ) ;