Hi guys,
I'm using a car movement script for controlling a truck and I have my camera setup to follow the truck beside it. The car moves with WSAD. Only I want to restrict the movement of the truck to move on the Z axis only (forward and backward). What event would I use to so the truck can't turn left and right? I was playing with Set Position but that didn't seem to get the results.
I can constrain the X in the Rigidbody but the truck will still rotate a bit causing it to eventually just stop.
*EDIT - Ah nevermind I got this
I just froze the position of the X and the rotation on the Y in the rigidbody and that worked.
Cheers!
Shane