I’ve been stuck on this for sometime now, what I have is a compass which points toward a certain direction depending on a persons location and this location changes depending where you are. What I have is a compass which points to the direction but what I need is to have an object to be at the place where the compass is pointing, I can’t seem to get this right, I’m using compass degrees, if anybody could help would be grateful.
Ok I’ve attached a basic image which I just made. So what I need is for the cube in the image to move to a certain location on the compass depending where the person is. Its a finding Mecca compass if that helps, so where I am currently I would need to point it 118 degrees and somebody else where would need to point somewhere else. So I just need the cube to be wherever Mecca is relative to that persons position.
Well, a couple of things.
Are you using real world coordinates? Or is this just in game coordinate? If in game, is game play on a plane, or sphere?
Overall, what is wrong with Angle();? Plug in player position, Mecca position, an angle is returned. Use this angle to adjust the compass or cube as needed.