|
-
Oct 22nd, 2005, 10:59 AM
#1
Thread Starter
Lively Member
[C++6 DirectX8] Just a quick question
I'm following the tutorials over at drunken hyena and im at the one with the rotations. I just want to play around with it for a bit, like adding controls to speed up/slow down the rotations, or moving the triangle around (i took out the square).
What im wondering is what is the best way to check if the person pressed a certain key (like a switch...case) and then where would I put it in the code?
Thanks
-
Oct 22nd, 2005, 12:04 PM
#2
Thread Starter
Lively Member
Re: [C++6 DirectX8] Just a quick question
Actually, i want it to move like the ship from asteriods. So, how would I do that?
Would i set up a vector of some kind and then a thrust or something. Then for rotating it i take the vector and multiply by a rotation matrix?? Also, some basic code would help.
Thanks
Last edited by fartman_900; Oct 22nd, 2005 at 03:54 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|