Original Post
I'm trying to get an object to rotate by itself without having to press a key on the keyboard. Here is the code if (m_bKey['J']) m_pObjects[0].vR.z -= 1.0f * m_fTimeElapsed; if (m_bKey['L']) m_pObjects[0].vR.z += 1.0f * m_fTimeElapsed; if (m_bKey['I']) m_pObjects[0].vR.y -= 1.0f * m_fTimeElapsed; if (m_bKey['K']) m_pObjects[0].vR.y += 1.0f * m_fTimeElapsed; if (m_bKey['V']) m_pObjects[0].vR.x -= 1.0f * m_fTimeElapsed; if (m_bKey['B']) m_pObjects[0].vR.x += 1.0f * m_fTimeElapsed; I tried commenting out if (m_bKey['J']) and using m_pObjects[0].vR.z -= 1.0f * m_fTimeElapsed; The object is rotated once and that is it. I figured if I'm able to use the keyboard to rotate the object I should be able to rotate it by itself, but that's not the case.