Changeset 1779


Ignore:
Timestamp:
Aug 20, 2012, 1:49:06 PM (8 years ago)
Author:
touky
Message:

Fixed stupid base_movement which was cached for ever.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Physics/Src/EasyCharacterController.cpp

    r1768 r1779  
    119119        Entity::TickGame(seconds);
    120120
    121         m_character->setVelocityForTimeInterval(LOL2BT_VEC3(LOL2BT_UNIT * /*0.1f **/ (m_base_cached_movement + m_frame_cached_movement)) / seconds, seconds);
    122         //m_character->setWalkDirection();
     121        m_character->setVelocityForTimeInterval(LOL2BT_VEC3(LOL2BT_UNIT * (m_base_cached_movement + m_frame_cached_movement)) / seconds, seconds);
     122        m_base_cached_movement = vec3(.0f);
    123123}
    124124
Note: See TracChangeset for help on using the changeset viewer.