I'm making a game with a car that can move left, right, jump and rotate left and right while in the air. I also want the player to flip 360 degrees when a button combination is pressed.
I made left and right with AddTorque to wheels, the jump is made by AddForce to the car body, and the rotation is using AddTorque to the car body.
I successfully did everything until it got to the flip. I made a flip by making an idle animation with nothing affecting the player, and the flip animation turns him 360 degrees. When playing the game, the car can move left, right, jump and flip, but when trying to rotate in the air, the idle animation doesn't allow the car to rotate at all.
Any help would be immensely appreciated,
Thank you so much :)
↧