mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +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);
|
activate(Vertical);
|
||||||
}
|
}
|
||||||
} else {
|
} 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()) {
|
if (!isActive(Rotation) && getForceActivateRotation()) {
|
||||||
activate(Rotation);
|
activate(Rotation);
|
||||||
setForceActivateRotation(false);
|
setForceActivateRotation(false);
|
||||||
}
|
}
|
||||||
if (!isActive(Horizontal) && getForceActivateHorizontal()) {
|
if (!isActive(Horizontal) && (getForceActivateHorizontal() ||
|
||||||
|
!withinTheBaseOfSupport() {
|
||||||
activate(Horizontal);
|
activate(Horizontal);
|
||||||
setForceActivateHorizontal(false);
|
setForceActivateHorizontal(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue