mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 14:57:00 +02:00
don't move user view with their gyro, temporarily hide hand
This commit is contained in:
parent
88cac51c0c
commit
a20a162502
2 changed files with 6 additions and 3 deletions
|
@ -361,7 +361,7 @@ void Head::parseData(void *data, int size) {
|
|||
&position.x, &position.y, &position.z,
|
||||
&loudness, &averageLoudness,
|
||||
&handPos.x, &handPos.y, &handPos.z);
|
||||
if (glm::length(handPos) > 0.0) hand->setPos(handPos);
|
||||
// if (glm::length(handPos) > 0.0) hand->setPos(handPos);
|
||||
}
|
||||
|
||||
void Head::SetNewHeadTarget(float pitch, float yaw)
|
||||
|
|
|
@ -393,8 +393,11 @@ void reset_sensors()
|
|||
void update_pos(float frametime)
|
||||
// Using serial data, update avatar/render position and angles
|
||||
{
|
||||
float measured_pitch_rate = serialPort.getRelativeValue(PITCH_RATE);
|
||||
float measured_yaw_rate = serialPort.getRelativeValue(YAW_RATE);
|
||||
// float measured_pitch_rate = serialPort.getRelativeValue(PITCH_RATE);
|
||||
// float measured_yaw_rate = serialPort.getRelativeValue(YAW_RATE);
|
||||
|
||||
float measured_pitch_rate = 0;
|
||||
float measured_yaw_rate = 0;
|
||||
|
||||
//float measured_lateral_accel = serialPort.getRelativeValue(ACCEL_X);
|
||||
//float measured_fwd_accel = serialPort.getRelativeValue(ACCEL_Z);
|
||||
|
|
Loading…
Reference in a new issue