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 =;

it’s not working.

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


baseBallclone.transform.rotate(; not working…!!!

where I am mistaking…or something else…??

Have you tryed BaseBallcones.transform.rotation =; ?