Skip to main content

You could create a Boolean eg. canCrashboolean, for example bool canCrash, and make sure it is truetrue when ever the car changes from the previous position. Then, then on collision, you check if this Boolean is true alsocanCrash == true and, if it isn't but the speed of the car was higher than the car it collided into. 

I think that's athe right direction to go.

You could create a Boolean eg. canCrash and make sure it is true when ever the car changes from the previous, then on collision you check if this Boolean is true also if it isn't but the speed of the car was higher than the car it collided into. I think that's a right direction to go.

You could create a boolean, for example bool canCrash, and make sure it is true when ever the car changes from the previous position. Then, on collision, you check if canCrash == true and, if it isn't but the speed of the car was higher than the car it collided into. 

I think that's the right direction to go.

Source Link
John Smith
  • 1.3k
  • 1
  • 21
  • 41

You could create a Boolean eg. canCrash and make sure it is true when ever the car changes from the previous, then on collision you check if this Boolean is true also if it isn't but the speed of the car was higher than the car it collided into. I think that's a right direction to go.