Skip to content

Commit

Permalink
Sticky legs
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstaro committed Mar 5, 2014
1 parent 6982095 commit 2a60364
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Foot.cpp
Expand Up @@ -68,9 +68,9 @@ void Foot::onUpdate(double dt) {
if(rayCallback.hasHit()) {
hitPoint = rayCallback.m_hitPointWorld;
auto new_pos = glm::vec2(hitPoint.x(), hitPoint.y());
// if((new_pos - m_position).length() > 2.f) {
m_position = new_pos;
// }
if((new_pos - m_position).length() > 2.f) {
m_position = new_pos;
}
} else {
m_position = glm::vec2(rayEnd.x(), rayEnd.y());
}
Expand Down

0 comments on commit 2a60364

Please sign in to comment.