The logic for violation is very simple, a watcher object is assigned to monitor every collision with signs collision boxes or anything that would cause violation there are collision boxes everywhere and it will get activated once the player violates anything, the watcher object acts like a virtual traffic enforcer and calls a function to list the players violation and also to play animations needed
An example logic is over speeding, at a certain road there is a collision box that the player wont really bump into but just there to trigger anything, and on this road where you only need 70 kph only, it the watcher monitors the player speeds and if that goes higher that 70 then a violation will be triggered and he will be given a violation
Veryyyy Nice 🔥💪👏👍
sir any source code in violation?
github.com/RJAmoto/Jiefu-Driving-Simulator/tree/main/Assets checkthis link
The logic for violation is very simple, a watcher object is assigned to monitor every collision with signs collision boxes or anything that would cause violation there are collision boxes everywhere and it will get activated once the player violates anything, the watcher object acts like a virtual traffic enforcer and calls a function to list the players violation and also to play animations needed
An example logic is over speeding, at a certain road there is a collision box that the player wont really bump into but just there to trigger anything, and on this road where you only need 70 kph only, it the watcher monitors the player speeds and if that goes higher that 70 then a violation will be triggered and he will be given a violation
ديييييم 🔥🔥