avatar app changes

This commit is contained in:
amantley 2018-09-27 16:59:54 -07:00
parent 52355e53f1
commit 42cb8a7ef0
2 changed files with 2 additions and 1 deletions

View file

@ -477,7 +477,7 @@ void MyAvatar::update(float deltaTime) {
auto sensorHeadPoseDebug = getControllerPoseInSensorFrame(controller::Action::HEAD);
glm::vec3 upHead = transformVectorFast(sensorHeadPoseDebug.getMatrix(), glm::vec3(0.0f, 1.0f, 0.0f));
float acosHead = glm::dot(upHead, glm::vec3(0.0f, 1.0f, 0.0f));
// qCDebug(interfaceapp) << "sensor space head pos " << sensorHeadPoseDebug.getTranslation().y;
// qCDebug(interfaceapp) << "sensor space head pos " << sensorHeadPoseDebug.getTranslation().y;
if ((acosHead > 0.98f) && !getIsInSittingState() && (sensorHeadPoseDebug.getTranslation().y < -0.5f)) {
//qCDebug(interfaceapp) << "we are going to sitting state because it looks like we should" << sensorHeadPoseDebug.getTranslation().y;
}

View file

@ -140,6 +140,7 @@ function onCollisionsEnabledChanged(enabled) {
function onSittingEnabledChanged(isSitting) {
if (currentAvatarSettings.sittingEnabled !== isSitting) {
currentAvatarSettings.sittingEnabled = isSitting;
print("emit sitting changed");
sendToQml({ 'method': 'settingChanged', 'name': 'sittingEnabled', 'value': isSitting })
}
}