Hi
I'm using a "Down-Light" on my game with a current "Rotation" of 29,0,0
When I collide with something, I want to change the "Rotation" to 29,180,0
Is there anyone who could kindly let me know what do I need to add to the following code to do what I want, or point me in the right direction?
function OnControllerColliderHit (hit : ControllerColliderHit) {
if (hit.gameObject.tag == "hit17"){
}
}
Thanks