My player jumps much higher on android device, than it does on PC.
Here is my Jump code for my player:
public void jump(){
if(gScript.getJumpCount() < 2){
rigidbody.AddForce (Vector3.up*4f,ForceMode.VelocityChange);
rigidbody.useGravity = true;
}
}
This is called in FixedUpdate()
Hope you can help. Thanks in advance, Jack.
↧