Trying to make a paddle game.
I'm having issues with rotating the ball and having it go in the new direction.
How would I go about this using rigidbodies? AddForce ? AddTorque?
Trying to make a paddle game.
I'm having issues with rotating the ball and having it go in the new direction.
How would I go about this using rigidbodies? AddForce ? AddTorque?
function FixedUpdate ()
{
rigidbody.AddForce (0, 10, 0);
}
function FixedUpdate ()
{
rigidbody.AddTorque (0, 10, 0);
}