eulerAngles not set to zero.

Hello all,

I am generating a ball from canon like,

GameObject baseBallClone = (gameObject)Instantiate (baseBall, position, canon.transform.rotation);

On collsion of boundry I want to set baseBallClone’s rotation as zero.

I did like,

baseBallclone.transform.eulerAngles = Vector3.zero;

it’s not working.

I tried even baseBallclone.transform.rotation = Quaternion.identity;

even

baseBallclone.transform.rotate(Vector3.zero); not working…!!!

where I am mistaking…or something else…??

Have you tryed BaseBallcones.transform.rotation = Vector3.zero; ?