mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 00:26:33 +02:00
Revert display test to depending just on hand to camera angle for now
This commit is contained in:
parent
883479d654
commit
6dcce0e953
1 changed files with 1 additions and 2 deletions
|
@ -409,8 +409,7 @@
|
|||
handOrientation = Quat.multiply(MyAvatar.orientation, MyAvatar.getAbsoluteJointRotationInObjectFrame(jointIndex));
|
||||
cameraToHandDirection = Vec3.normalize(Vec3.subtract(handPosition, Camera.position));
|
||||
|
||||
return Vec3.dot(cameraToHandDirection, Quat.getForward(handOrientation)) > MIN_HAND_CAMERA_ANGLE_COS
|
||||
&& Vec3.dot(cameraToHandDirection, Quat.getForward(Camera.orientation)) > MIN_HAND_CAMERA_ANGLE_COS;
|
||||
return Vec3.dot(cameraToHandDirection, Quat.getForward(handOrientation)) > MIN_HAND_CAMERA_ANGLE_COS;
|
||||
}
|
||||
|
||||
function enterProxyHidden() {
|
||||
|
|
Loading…
Reference in a new issue