set default controlRatio to 0.2f
This commit is contained in:
parent
ccbde75d9b
commit
f4a540198f
@ -222,7 +222,7 @@ void PlayerCharacterNode::update()
|
|||||||
getEngine().getPhysics()->rayTest(start_front, end_front, RayCallback_front);
|
getEngine().getPhysics()->rayTest(start_front, end_front, RayCallback_front);
|
||||||
getEngine().getPhysics()->rayTest(start_back, end_back, RayCallback_back);
|
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()){
|
if(RayCallback_back.hasHit()){
|
||||||
onGround = true;
|
onGround = true;
|
||||||
@ -250,7 +250,6 @@ void PlayerCharacterNode::update()
|
|||||||
m_jumping = true;
|
m_jumping = true;
|
||||||
else
|
else
|
||||||
m_jumping = false;
|
m_jumping = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if(RayCallback.hasHit() ) // if ground is nearby
|
/* if(RayCallback.hasHit() ) // if ground is nearby
|
||||||
|
Loading…
x
Reference in New Issue
Block a user