I have a script for movement but for some reason the jump segment will never jump the same height each time.
public float forwardForce = 2000f;
public float sidewaysForce = 500f;
public float jumpForce = 100f;
// Fixed Update is used when using physics
public void Jump()
{
if (rb.position.y < 1.75)
if(rb.position.y > 0.9)
if (rb.position.x < 7)
if (rb.position.x > -7)
{
rb.AddForce(0, jumpForce * Time.deltaTime, 0, ForceMode.VelocityChange);
}