Hi im new to unity and i m making a little shooting game were you need to shoot some ducks on a fair.
when it hits the duck it should rotate -90 degrees.
so i inserted this script to my duck:
var bullet; function OnCollisionEnter (hit : Collision) { if(hit.gameObject.tag == bullet){ print ("test hit"); hit.gameObject.rotation.x = -90; } }
after addings this code it just dont work anyone??
thnx alot