04.05.2014, 08:54
Quote:
You don't know what you are talking about, OPU gets called a very large and unpredictable number of times per second, which is unnecessary for this. (Imagine calculating speed of vehicles 20 - 30 times per second)
You need to calculate the speed of the vehicle under a per second timer (I don't really see a 500ms timer required) and then check if the speed is more than 30, if yes, get the position and create explosions where necessary. You can look at this thread for information about vehicle speeds. |
I dont understand some of those variables,
I want the vehicle explode when it reach 30 KmPh