浏览代码

Fixed stupid base_movement which was cached for ever.

legacy
Benjamin ‘Touky’ Huet touky 12 年前
父节点
当前提交
fbde8a5932
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      test/Physics/Src/EasyCharacterController.cpp

+ 2
- 2
test/Physics/Src/EasyCharacterController.cpp 查看文件

@@ -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


正在加载...
取消
保存