mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 14:52:19 +02:00
Detect HMD mode properly from rig, in order to enable head IK
This commit is contained in:
parent
f7f0483320
commit
3c043309be
1 changed files with 1 additions and 2 deletions
|
@ -1958,8 +1958,7 @@ void Rig::updateReactions(const ControllerParameters& params) {
|
|||
|
||||
bool isSeated = _state == RigRole::Seated;
|
||||
bool hipsEnabled = params.primaryControllerFlags[PrimaryControllerType_Hips] & (uint8_t)ControllerFlags::Enabled;
|
||||
bool hipsEstimated = params.primaryControllerFlags[PrimaryControllerType_Hips] & (uint8_t)ControllerFlags::Estimated;
|
||||
bool hmdMode = hipsEnabled && !hipsEstimated;
|
||||
bool hmdMode = hipsEnabled;
|
||||
|
||||
if ((reactionPlaying || isSeated) && !hmdMode) {
|
||||
// TODO: make this smooth.
|
||||
|
|
Loading…
Reference in a new issue