mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 09:23:35 +02:00
starting to implement the step detection code in MyAvatar.cpp
This commit is contained in:
parent
4424a8df11
commit
8fc04776f9
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue