Rotate an angle

I want to rotate an angle in the local space (kinda).. ill explain.

So i am firing an object out of an cannon (original i know) - but the transform.forward of the cylinder faces down at the ground.

If i do:

c.localEulerAngles.x -= 90;

rigidbody.AddForce(c.forward*powerValue*200);

c.localEulerAngles.x += 90;

I get my desired result. I would like to know the (non hack) way to do this properly.

cheers Tony

Hi,

Simply use either c.up or c.right instead of c.forward. If fired in the wrong direction, use then -c.up or -c.right.

That then should work properly without any hack.

Bye,

Jean