make a rigid body flip?

How would you go about adding force to an object so that it flipped on one axis?

What the effect im trying to achieve is like throwing a log but I want to to flip a bit faster.

At the moment I have this.

currentWeapon.rigidbody.AddForce(Vector3.up * 220);

That simply throws the object upwards. I want it to spin and maybe go to the left or right a little. So between say -0.5f and 0.5f

I want to apply force if I can because I dont want to place an update on this particular object. But I will if I have to :)

Sorry if this doesn't make sense. Hard to explain.


Use AddTorque rather than AddForce.

Here is a solution I found below for anyone else,

float dir = Random.Range(-1,1);
float str = Random.Range(50,100);

obj.rigidbody.AddForceAtPosition(Vector3.up * 220 + new Vector3(dir,0,0) * str, new Vector3(0,0.1f,0));

Thanks again for your help Eric.