From f4a540198f94348d273e3e2584dbf49b768ad0b5 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Thu, 24 Aug 2017 15:46:26 +0200 Subject: [PATCH] set default controlRatio to 0.2f --- src/scene/playercharacternode.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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