Not familiar with the forums, excuse my title. I am trying to calculate an appropriate viewport angle based off an entities position on a sphere. I am attempting to create a game with multiple planets and appropriate gravity simulation for the players interacting with these planets. The simulated gravity is completed, its not a tough task, things work fine. However I can not for the life of me get proper view angles for the clients viewport. I am taking the planets position, the clients position (on this planet), and crossing those two vectors to get the perpendicular angle(which in theory should be the horizon of the planet?) And it works!... to a degree... When I enter different quadrants of this sphere, things start getting wonky. I have no real education in trigonometry, just learned a couple little things here and there for projects. However I feel like this is a (possibly simple)trigonometry issue that I can not overcome. I have tried hours and multiple days trying to research and solve my issue but I just can't manage. Maye you guys can give me a hand. Thanks you!
Register to Join the Conversation
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Advertisement