StevenAFC

Hey

Ive got a model on screen, and I can control its pitch and yaw (not sure if thats technically correct) and I can move it using the basic X Y Z co-ordinates, however I want it to move in the direction its facing, but I cant figure out how :(.

Any advice



Re: XNA Game Studio Express Moving a Model in the direction its facing

Thomas Aylesworth

Check out Riemer's Flight Simulator XNA Tutorial. He shows exactly how to do this.

http://www.riemers.net/eng/Tutorials/XNA/Csharp/series2.php





Re: XNA Game Studio Express Moving a Model in the direction its facing

StevenAFC

Thanks alot!





Re: XNA Game Studio Express Moving a Model in the direction its facing

XNA Rockstar

There's a video tutorial from MS here that covers exactly what you're trying to do. I did it last night and it was pretty easy to follow. Basicaly they use some Trig to get the change in X and Z.

You can also find the same thing (sans video) in the help docs under XNA GSE -> Getting Started -> Going Beyond -> Tutorial 2





Re: XNA Game Studio Express Moving a Model in the direction its facing

StevenAFC

Yep I've seen that but they only cover 2D movement, I need to cover all angles.