Jump to content
  • Advertisement
Sign in to follow this  
speciesUnknown

Positioning crosshair in 3rd person shooter

This topic is 2448 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I'm having trouble correctly positioning the crosshair in my tank game. The camera is offset by a vector (x,y) from the barrel pivot, and that vector is rotated as the barrel pitches up and down. The problem is, when I put the crosshair in the centre of the screen, rounds are being launched too low. I tried putting the crosshair down, but this goes wrong when I zoom in (by changing the FOV from 45 to 15).

tankdiagram.png


How do I calculated based on the vector XY and the FOV, where to put the crosshair? This is causing issues where the player cannot estimate a good hull down position, because their rounds hit the dirt at the top of the hill.

Share this post


Link to post
Share on other sites
Advertisement
Ive decided on a solution - in third person mode, the barrel of the tank will have a laser pointer. There is no way to have a fixed position crosshair on screen when the view is offset from the launch vector of rounds fired by the tank. Depending on user feedback I might chance this into a full blown 3d crosshair.

A laser pointer will actually look pretty cool I think, since my game is set in virtual reality - i can stretch artistic licence somewhat further than in a normal tank game.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!