Is there a way to add force to an object without declaring it’s direction.
I want to throw the ball but I just need to add force once touch on release.
I used this code rigidbody.velocity = transform.forward * 20; but the ball changed it direction and moved forward after the ball follow the direction intended by the user on the screen.
Is there a way to add force to an object without declaring it’s direction.
Share
If I understood, you want to apply the force (or maybe an impulse?) in the direction of where the ball is going, i.e., in direction of its velocity:
I didn’t understand very well, I mean, the force must have a direction, right? I’m assuming you want it to go where it’s already going.