I am working on my own little "world". I have a question. When I am in the center of my world it turns in one spot. But when I move it moves sideways and turns. How do I turn in one spot the whole time?
This is a discussion on Rotation on Y axis? within the Game Programming forums, part of the General Programming Boards category; I am working on my own little "world". I have a question. When I am in the center of my ...
I am working on my own little "world". I have a question. When I am in the center of my world it turns in one spot. But when I move it moves sideways and turns. How do I turn in one spot the whole time?
Website(s): http://www16.brinkster.com/trifaze/
E-mail: trifaze_mattu@lycos.com
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
First transform from local space to world space. Then transform from world space to aligned space. All of the viewer rotations should be done prior to the transformation from world space to aligned space.
this might help, on how to do it anyway...
http://www.geocities.com/SiliconVall.../matrices.html
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.