mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 22:33:31 +02:00
test
This commit is contained in:
parent
e219cd8223
commit
9f82b9fb43
2 changed files with 3 additions and 2 deletions
|
@ -410,11 +410,10 @@ void Avatar::simulate(float deltaTime, Transmitter* transmitter) {
|
|||
|
||||
// set head lookat position
|
||||
if ((_interactingOther)
|
||||
&& (_isMine)) {
|
||||
&& (_isMine)) {
|
||||
_head.setLookAtPosition(_interactingOther->getSpringyHeadPosition());
|
||||
} else {
|
||||
_head.setLookAtPosition(glm::vec3(0.0f, 0.0f, 0.0f));
|
||||
//_head.setLooking(false);
|
||||
}
|
||||
|
||||
_head.setBodyRotation (glm::vec3(_bodyPitch, _bodyYaw, _bodyRoll));
|
||||
|
|
|
@ -120,6 +120,8 @@ void Head::setLookAtPosition(const glm::vec3& lookAtPosition) {
|
|||
|
||||
_lookAtPosition = lookAtPosition;
|
||||
|
||||
_lookingAtSomething = true;
|
||||
|
||||
/*
|
||||
if ( fabs(lookAtPosition.x + lookAtPosition.y + lookAtPosition.z) == 0.0 ) { // a lookatPosition of 0,0,0 signifies NOT looking
|
||||
_lookingAtSomething = false;
|
||||
|
|
Loading…
Reference in a new issue