Object falling very slow
So I have a sphere with a script on it that adds the horizontal movement to gravity and then sets its velocity to the result. The sphere keeps falling very slowly and the horizontal movement isn't applied at all. Here's the code(body is the sphere's rigidbody):
Vector3 currentVelocity = new Vector3(player.transform.forward.x * speed, Physics.gravity.y, 0) * Time.deltaTime;
body.velocity = currentVelocity;
How could I make both velocities apply at the same time? Thanks in advance!
Comment