Monday, March 13, 2017

unity - Ignore collisions with some objects in certain contexts


I'm making a racing game with cars in Unity. The car has a boost/nitro powerup. While boosting, I wouldn't want to be deviated when colliding with zombies, but I do want to be deviated when colliding with walls.



On the other hand, I don't want to ignore collision with zombies, because I still want to hit them on impact.


How should I handle this? Basically, what I want is for the car to not rotate when colliding with certain objects.




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...