Changeset 1742


Ignore:
Timestamp:
Aug 14, 2012, 9:27:21 PM (7 years ago)
Author:
Jnat
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/games/demo-jnat/player.h

    r1741 r1742  
    7373                m_bo->m_position = (m_position + vec3(0.0f,5.0f,10.0f) );
    7474
    75                 float angle = lol::atan2(lookY,lookX);
    76                 quat q = quat::rotate(angle,vec3(0,0,1));
     75                float angle = lol::atan2(-lookX,lookY);
     76                quat q = quat::rotate(angle*( 180 / M_PI ),vec3(0.0f,0.0f,1.0f));
    7777                m_bo->m_rotation = q;
    78                 q.printf();
     78                //m_bo->m_rotation.printf();
    7979                //m_position += deltapos;
    8080
Note: See TracChangeset for help on using the changeset viewer.