hello guys if anyone have solution for me i will be happy.I have attached compass to my arcamera
this compass have transforms on v3zero and have script for child arrow of compass for facing forward to
direction of target.what i need is when arrow is facing to target and compass is tilted,arrow tilt whit him
with direction which was seted.I trying with quaternions but with bad results.
script:
var targetPos = new Vector3(targetDebug.transform.position.x, arrow.transform.position.y,
targetDebug.transform.position.z);
arrow.transform.LookAt(targetPos);
my hierarchy:
this occur when compass is tilted
facing to target also when target is higher or lower on Yaxis