diff --git a/src/scene/playercharacternode.cpp b/src/scene/playercharacternode.cpp index 95aedd1..7796ba8 100644 --- a/src/scene/playercharacternode.cpp +++ b/src/scene/playercharacternode.cpp @@ -222,7 +222,7 @@ void PlayerCharacterNode::update() getEngine().getPhysics()->rayTest(start_front, end_front, RayCallback_front); getEngine().getPhysics()->rayTest(start_back, end_back, RayCallback_back); - float controlRatio = 0.f; // 1 = total control, 0 = no control, can be seen as a slipperiness factor + float controlRatio = 0.2f; // 1 = total control, 0 = no control, can be seen as a slipperiness factor if(RayCallback_back.hasHit()){ onGround = true; @@ -250,7 +250,6 @@ void PlayerCharacterNode::update() m_jumping = true; else m_jumping = false; - } /* if(RayCallback.hasHit() ) // if ground is nearby