mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 09:43:25 +02:00
changed cg hips computation so that it is not computed when hmdleanrecenter is turned off
This commit is contained in:
parent
b31af8c9c6
commit
05d3becd40
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ static AnimPose computeHipsInSensorFrame(MyAvatar* myAvatar, bool isFlying) {
|
|||
}
|
||||
|
||||
glm::mat4 hipsMat;
|
||||
if (myAvatar->getCenterOfGravityModelEnabled() && !isFlying && !(myAvatar->getIsInWalkingState())) {
|
||||
if (myAvatar->getCenterOfGravityModelEnabled() && !isFlying && !(myAvatar->getIsInWalkingState()) && myAvatar->getHMDLeanRecenterEnabled()) {
|
||||
// then we use center of gravity model
|
||||
hipsMat = myAvatar->deriveBodyUsingCgModel();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue