Ignore:
Timestamp:
Jun 18, 2012, 2:25:48 PM (11 years ago)
Author:
touky
Message:

Added Rotation & scale to Lolnament.
Brute-fixed all Orbital warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/tank.h

    r1442 r1494  
    4444        WorldEntity::TickGame(seconds);
    4545
    46         float test = RandF(40.f, 70.f);
    47         m_rotation *= quat::rotate(seconds * test, vec3(0, 1, 0));
     46                float test = RandF(40.f, 70.f);
     47                m_rotation *= quat::rotate(seconds * test, vec3(0, 1, 0));
    4848        m_velocity = m_rotation.transform(vec3(0, 0, 1));
    4949        m_position += seconds * 80.f * m_velocity;
     
    6363        }
    6464
    65         mat4 model = mat4::translate(m_position) * mat4(m_rotation);
     65                mat4 model = mat4::translate(m_position) * mat4(m_rotation);
    6666        m_body.Render(model);
    6767
Note: See TracChangeset for help on using the changeset viewer.