Hallo,
I wrote two scripts for a rotating compass. One to read the MainCameraRotation and one to give the rotation to the compass.
The problem I have is that the compass keeps rotating with the value it is getting and not standing still on that rotaionangle.
Any solution ?
Achim
script 1
static var kompassausrichtung;
function Update(){
kompassausrichtung = transform.rotation.y ;
}
script 2
function Update(){
transform.Rotate(0,0,kompassorig.kompassausrichtung);
}