Hey guys I am new to the physics/add force/add velocity thing. Anyway I am doing my pong game to exercise on these stuff. If anyone could guide me on this:
right now when the ball hits the player it moves left and right only. Could anyone like teach me how to give it a force according to where the player hits. For example if the player hits the ball from down it goes down and stuff! if you could give me any tutorial or anything that might help me! Thank you a lot!
you mean like this right? the other being player1 and transform.position is the ball!
and then I add :
rigidbody.velocity =dist+ ( Vector3.left * 4000);