Sign in to follow this  

3D Maths

Recommended Posts

<-- edit --> I no longer need a response to this message, thanks, I tried the following code: Camera.Position.X = Camera.Position.X + Cos(DegToRad(Camera.Direction)) / 10; Camera.Position.Y = Camera.Position.Y - Sin(DegToRad(Camera.Direction)) / 10; and it works a treat. ----------------- Hi, I'm a C++ noob and I'm working on a program that I'm using to display 3D graphics, but I've run into a problem which I won't be able to solve by myself until I have a more mathematical mind... I currently have a camera, which has variable position (x, y, z), direction, pitch and roll properties. I've got it mostly sussed, but how do I move it forward in the game world according to which direction it's facing? If there's anything you need to know about my coding to answer the question, please ask. [Edited by - Sappharos on November 23, 2008 12:48:17 PM]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this