Hey guys, this is my first post asking for help on this forum for about 7-8 years. I'm using DirectX(I know should go under Windows or Game programming,but nobody browses those and this is a C++ question in general anyway.
I have my camera class, from Camera.cpp and camera.h.
They all have three functions that work perfectly(actually two of them work)
when I go
Code:
m_camera.Yaw(DeltaY);
m_camera.Pitch(DeltaX);
She works. Beautifully, I might add. However...
Code:
m_camera.Roll(DeltaZ);
Does nothing. Even if I just put
Code:
m_camera.Roll(10.00f); //(or any over float value)
It simply does not roll.
Since this forum(unlike cprogramming.com's forum has a character limit I uploaded both Camera.cpp and Camera.h into a .txt document:
Here is Camera.cpp/Camera.h:
http://www.yiffclan.org/code.txt
What gives? Yaw and Pitch work PERFECT, but not Roll(). Why? What am I missing? I know some you experts out there can help me find the answer.
Thank you so much for your time and consideration. And mods, please don't move this another subforum that nobody reads. This is mostly a C++ issue, after all, not a graphics API issue.
Thank you!
P.S. Your code formatting doesn't work on Chrome for me, and nor does preview. So if this post looks messy, I apologize--I click preview and I only get a couple chinese characters in a small blue table rather than an actual preview.
Please help me guys. The engine I'm writing means a lot to me personally.