pong rolling ball

hi , i’m still young at unity and java and my first project is a pong like game (2d)

i got everything working except my ball is not rolling.

it is moving but when i added my ball texture i noticed it is not “rolling”

i use this to start moving my ball :

gameObject.rigidbody.AddForce(200,randomAngle,0);

Then to speed up the ball i use :

function OnCollisionEnter(theCollision : Collision)
	{

		if(theCollision.gameObject.name == "Player1")
		{
		gameObject.rigidbody.AddForce(rigidbody.velocity.normalized * 55);
		audio.PlayOneShot(paddleSound1);
		}
		if(theCollision.gameObject.name == "Player2")
		{
		gameObject.rigidbody.AddForce(rigidbody.velocity.normalized * 55);
		audio.PlayOneShot(paddleSound2);
		}

there is no gravity and its 2d.

i think i have to get the x and y direction + the velocity to give it to the rotation
but i don’t know where to start atm, and maybe there is an easier way to do that.

thanks in advance for helping :slight_smile:

The easiest way to do this would be to actually have the ball roll on a surface with a certain friction. Add a plane and enable gravity. If you want to calculate the correct rolling rotation without using the built-in physics that would do this for you, then you are in for a lot of fun/frustration.

I guess my follow-up question would be why do you want to do it without the physics engine?