Hi,
I have been using this line of code to add force to my rigidbody player.
GetComponent.<Rigidbody>().velocity += Vector3.right * sideSpeed;
the only problem is that it only works in one particular direction.
So, say if i was facing north, and i press a key that executes this function. And the player jumps right. If i was to face East, the command would shoot me backwards. Is there a way so that in any direction the player faces they will always jump to their right?
Thanks.