starting to implement the step detection code in MyAvatar.cpp

This commit is contained in:
amantley 2018-06-21 10:59:07 -07:00
parent 4424a8df11
commit 8fc04776f9

View file

@ -3325,11 +3325,15 @@ void MyAvatar::FollowHelper::prePhysicsUpdate(MyAvatar& myAvatar, const glm::mat
activate(Vertical);
}
} else {
// this is where we put the code for the stepping.
// we do not have hmd lean enabled and we are looking for a step via our criteria.
if (!isActive(Rotation) && getForceActivateRotation()) {
activate(Rotation);
setForceActivateRotation(false);
}
if (!isActive(Horizontal) && getForceActivateHorizontal()) {
if (!isActive(Horizontal) && (getForceActivateHorizontal() ||
!withinTheBaseOfSupport() {
activate(Horizontal);
setForceActivateHorizontal(false);
}