Browse Source

Fixed stupid base_movement which was cached for ever.

legacy
Benjamin ‘Touky’ Huet touky 12 years ago
parent
commit
fbde8a5932
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      test/Physics/Src/EasyCharacterController.cpp

+ 2
- 2
test/Physics/Src/EasyCharacterController.cpp View File

@@ -118,8 +118,8 @@ void EasyCharacterController::TickGame(float seconds)
{
Entity::TickGame(seconds);

m_character->setVelocityForTimeInterval(LOL2BT_VEC3(LOL2BT_UNIT * /*0.1f **/ (m_base_cached_movement + m_frame_cached_movement)) / seconds, seconds);
//m_character->setWalkDirection();
m_character->setVelocityForTimeInterval(LOL2BT_VEC3(LOL2BT_UNIT * (m_base_cached_movement + m_frame_cached_movement)) / seconds, seconds);
m_base_cached_movement = vec3(.0f);
}

#endif // HAVE_PHYS_USE_BULLET


Loading…
Cancel
Save