function JumpLeft () {
rigidbody.AddForce(Vector3.up * jumpHeight);
yield WaitForSeconds(0.1);
rigidbody.AddForce(Vector3.right * -moveForce);
}
There is an identical function for “JumpRight”.
The issue is that object doesn’t move to the left. The upward force works fine, but the force to the left seems to do nothing. It is a significant value as well, much greater than “jumpHeight”.
So what’s the issue?