mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 11:50:39 +02:00
fixed some small formatting things
This commit is contained in:
parent
14d47d87d8
commit
8ecfbce15e
3 changed files with 20 additions and 22 deletions
|
@ -488,8 +488,8 @@ void Avatar::updateHandMovementAndTouching(float deltaTime) {
|
|||
_avatarTouch.setYourHandPosition(_interactingOther->_joint[ AVATAR_JOINT_RIGHT_FINGERTIPS ].springyPosition);
|
||||
_avatarTouch.setYourHandState (_interactingOther->_handState);
|
||||
|
||||
//_joint[ AVATAR_JOINT_RIGHT_FINGERTIPS ].springyPosition =
|
||||
//_interactingOther->_joint[ AVATAR_JOINT_RIGHT_FINGERTIPS ].springyPosition;
|
||||
_joint[ AVATAR_JOINT_RIGHT_FINGERTIPS ].position =
|
||||
_interactingOther->_joint[ AVATAR_JOINT_RIGHT_FINGERTIPS ].springyPosition;
|
||||
|
||||
//_handHoldingPosition
|
||||
|
||||
|
@ -530,8 +530,7 @@ void Avatar::updateHead(float deltaTime) {
|
|||
*/
|
||||
|
||||
//apply the head lean values to the springy position...
|
||||
if (fabs(_head.leanSideways + _head.leanForward) > 0.0f)
|
||||
{
|
||||
if (fabs(_head.leanSideways + _head.leanForward) > 0.0f) {
|
||||
glm::vec3 headLean =
|
||||
_orientation.getRight() * _head.leanSideways +
|
||||
_orientation.getFront() * _head.leanForward;
|
||||
|
|
|
@ -63,8 +63,7 @@ void AvatarTouch::setReachableRadius(float r) {
|
|||
|
||||
void AvatarTouch::render(glm::vec3 cameraPosition) {
|
||||
|
||||
if (_canReachToOtherAvatar)
|
||||
{
|
||||
if (_canReachToOtherAvatar) {
|
||||
glColor4f(0.3, 0.4, 0.5, 0.5);
|
||||
glm::vec3 p(_yourBodyPosition);
|
||||
p.y = 0.0005f;
|
||||
|
|
Loading…
Reference in a new issue