#### Archived

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

# Vector Rotation or something...

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

## Recommended Posts

I''m using Direct3D 8.1 and I want to get the camera''s viewpoint to rotate (like in an fps). Basically, I need to know how to rotate one vector around another keeping a constant distance. I''m a total newbie to 3d programming, so I''m awfully sorry if I just asked the dumbest question in the world - but hey...we all have to start sumwhere :D --------------- I finally got it all together... ...and then forgot where I put it.

##### Share on other sites
Help!

---------------

I finally got it all together...
...and then forgot where I put it.

##### Share on other sites
quote:
I''m using Direct3D 8.1 and I want to get the camera''s viewpoint to rotate (like in an fps). Basically, I need to know how to rotate one vector around another keeping a constant distance. I''m a total newbie to 3d programming, so I''m awfully sorry if I just asked the dumbest question in the world - but hey...we all have to start sumwhere :D

I''m just wondering about the question. Do you want to know how to rotate a vector around another vector in general (math-wise) or using Direct3D?

I''''m learning, just like the best of us...

##### Share on other sites
Just math-wise. I dunno how to do it in openGL either.

---------------

I finally got it all together...
...and then forgot where I put it.

##### Share on other sites
Well, since I only know how to do 2d rotations thus far in my education I''m going to refer you to a good article I just skimmed.

Under the articles section of Gamedev, go to Programming -> Math & Physics -> Matrices.

Under there, 3rd from the bottom (Three Dimensional Rotations) of that section is a good article on 3d rotations.

If you need any help understanding or figuring out any of it, I''ll be happy to try and figure it out, since I''m also interested (of course).

I''''m learning, just like the best of us...

##### Share on other sites
Thanxalot soulkeeper.

---------------

I finally got it all together...
...and then forgot where I put it.

##### Share on other sites
although i cannot tell you more than that, since i haven''t had the time to figure the damn things out yet...

--- krez (krezisback@aol.com)

1. 1
2. 2
Rutin
24
3. 3
4. 4
JoeJ
16
5. 5

• 14
• 29
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
631773
• Total Posts
3002265
×