Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

FPS camera

This topic is 5597 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

Well I know this question has been asked about 23432 million times but since I can´t do a search on the forum I have to ask again. I need help to make a FPS camera in DX9. Also some Code would be appreciated. Thx in advance! [edit] Oh yeah I´m pretty stupid so plz explain in english
Bad Monkey Productions [edited by - shakazed on January 22, 2003 2:18:06 PM]

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by shakazed
Well I know this question has been asked about 23432 million times but since I can´t do a search on the forum I have to ask again. I need help to make a FPS camera in DX9. Also some Code would be appreciated. Thx in advance!

[edit]
Oh yeah I´m pretty stupid so plz explain in english




Bad Monkey Productions

[edited by - shakazed on January 22, 2003 2:18:06 PM]




I think what you are looking for is what equations you need to place the direction that you are looking at.

And what you need to use are trig functions: sin(rad(rotation)) for the depth (z) and cos(rad(rotation)) for the x.

then, just multiply that stuff by a number to get the look-at point.

Share this post


Link to post
Share on other sites

  • 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!