I am trying to use rigidbody’s AddReletive force to make the movement in my game less stale as it is with just using transforn.Translate, but when I try to use it, it launches my character up as well as forwards.
private void FixedUpdate()
{
if (Input.GetKey(KeyCode.W))
{
if (IsRagDoll == false)
{
body.GetComponent<Rigidbody>().AddRelativeForce(0, 0, -8, ForceMode.Impulse);
}
}
the game object “body” is linked to my character that I am trying to move.
if you need to see more, let me know, and I can send it.