mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 03:58:07 +02:00
Need to set lookat position to camera position before simulating in mirror
mode.
This commit is contained in:
parent
8b6174f1fe
commit
5f696bd72e
1 changed files with 5 additions and 3 deletions
|
@ -1924,10 +1924,15 @@ void Application::update(float deltaTime) {
|
||||||
if (_lookatTargetAvatar && !_faceshift.isActive()) {
|
if (_lookatTargetAvatar && !_faceshift.isActive()) {
|
||||||
// If the mouse is over another avatar's head...
|
// If the mouse is over another avatar's head...
|
||||||
_myAvatar.getHead().setLookAtPosition(lookAtSpot);
|
_myAvatar.getHead().setLookAtPosition(lookAtSpot);
|
||||||
|
|
||||||
} else if (_isHoverVoxel && !_faceshift.isActive()) {
|
} else if (_isHoverVoxel && !_faceshift.isActive()) {
|
||||||
// Look at the hovered voxel
|
// Look at the hovered voxel
|
||||||
lookAtSpot = getMouseVoxelWorldCoordinates(_hoverVoxel);
|
lookAtSpot = getMouseVoxelWorldCoordinates(_hoverVoxel);
|
||||||
_myAvatar.getHead().setLookAtPosition(lookAtSpot);
|
_myAvatar.getHead().setLookAtPosition(lookAtSpot);
|
||||||
|
|
||||||
|
} else if (_myCamera.getMode() == CAMERA_MODE_MIRROR && !_faceshift.isActive()) {
|
||||||
|
_myAvatar.getHead().setLookAtPosition(_myCamera.getPosition());
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Just look in direction of the mouse ray
|
// Just look in direction of the mouse ray
|
||||||
const float FAR_AWAY_STARE = TREE_SCALE;
|
const float FAR_AWAY_STARE = TREE_SCALE;
|
||||||
|
@ -2784,9 +2789,6 @@ void Application::displaySide(Camera& whichCamera, bool selfAvatarOnly) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render my own Avatar
|
// Render my own Avatar
|
||||||
if (whichCamera.getMode() == CAMERA_MODE_MIRROR && !_faceshift.isActive()) {
|
|
||||||
_myAvatar.getHead().setLookAtPosition(whichCamera.getPosition());
|
|
||||||
}
|
|
||||||
_myAvatar.render(whichCamera.getMode() == CAMERA_MODE_MIRROR,
|
_myAvatar.render(whichCamera.getMode() == CAMERA_MODE_MIRROR,
|
||||||
Menu::getInstance()->isOptionChecked(MenuOption::AvatarAsBalls));
|
Menu::getInstance()->isOptionChecked(MenuOption::AvatarAsBalls));
|
||||||
_myAvatar.setDisplayingLookatVectors(Menu::getInstance()->isOptionChecked(MenuOption::LookAtVectors));
|
_myAvatar.setDisplayingLookatVectors(Menu::getInstance()->isOptionChecked(MenuOption::LookAtVectors));
|
||||||
|
|
Loading…
Reference in a new issue