mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:52:57 +02:00
Correct offset for teleport pad.
This commit is contained in:
parent
10e29d1cf0
commit
758f049f30
2 changed files with 5 additions and 5 deletions
|
@ -149,7 +149,7 @@ void LaserPointer::updateRenderState(const RenderState& renderState, const Inter
|
||||||
} else {
|
} else {
|
||||||
glm::vec3 dim = vec3FromVariant(qApp->getOverlays().getProperty(renderState.getEndID(), "dimensions").value);
|
glm::vec3 dim = vec3FromVariant(qApp->getOverlays().getProperty(renderState.getEndID(), "dimensions").value);
|
||||||
glm::vec3 currentUpVector = faceAvatarRotation * Vectors::UP;
|
glm::vec3 currentUpVector = faceAvatarRotation * Vectors::UP;
|
||||||
endProps.insert("position", vec3toVariant(endVec + glm::vec3(currentUpVector.x * 0.25f * dim.x, currentUpVector.y * 0.25f * dim.y, currentUpVector.z * 0.25f * dim.z)));
|
endProps.insert("position", vec3toVariant(endVec + glm::vec3(currentUpVector.x * 0.5f * dim.y, currentUpVector.y * 0.5f * dim.y, currentUpVector.z * 0.5f * dim.y)));
|
||||||
}
|
}
|
||||||
if (_faceAvatar) {
|
if (_faceAvatar) {
|
||||||
endProps.insert("rotation", quatToVariant(faceAvatarRotation));
|
endProps.insert("rotation", quatToVariant(faceAvatarRotation));
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
position: { x: MyAvatar.position.x, y: -MyAvatar.scale * 2 + MyAvatar.position.y + MyAvatar.scale * BUBBLE_HEIGHT_SCALE, z: MyAvatar.position.z },
|
position: { x: MyAvatar.position.x, y: -MyAvatar.scale * 2 + MyAvatar.position.y + MyAvatar.scale * BUBBLE_HEIGHT_SCALE, z: MyAvatar.position.z },
|
||||||
//rotation: Quat.fromPitchYawRollDegrees(MyAvatar.bodyPitch, 0, MyAvatar.bodyRoll),
|
//rotation: Quat.fromPitchYawRollDegrees(MyAvatar.bodyPitch, 0, MyAvatar.bodyRoll),
|
||||||
rotation: Quat.multiply(MyAvatar.orientation, Quat.fromVec3Degrees({x: 0.0, y: 180.0, z: 0.0})),
|
rotation: Quat.multiply(MyAvatar.orientation, Quat.fromVec3Degrees({x: 0.0, y: 180.0, z: 0.0})),
|
||||||
scale: { x: 2*MyAvatar.sensorToWorldScale, y: MyAvatar.scale * 0.5 + 0.5*MyAvatar.sensorToWorldScale, z: 2*MyAvatar.sensorToWorldScale },
|
scale: { x: 2 * MyAvatar.sensorToWorldScale, y: MyAvatar.scale * 0.5 + 0.2 * MyAvatar.sensorToWorldScale, z: 2 * MyAvatar.sensorToWorldScale },
|
||||||
visible: false,
|
visible: false,
|
||||||
ignoreRayIntersection: true
|
ignoreRayIntersection: true
|
||||||
});
|
});
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
rotation: Quat.multiply(MyAvatar.orientation, Quat.fromVec3Degrees({x: 0.0, y: 180.0, z: 0.0})),
|
rotation: Quat.multiply(MyAvatar.orientation, Quat.fromVec3Degrees({x: 0.0, y: 180.0, z: 0.0})),
|
||||||
scale: {
|
scale: {
|
||||||
x: 2 * MyAvatar.sensorToWorldScale,
|
x: 2 * MyAvatar.sensorToWorldScale,
|
||||||
y: MyAvatar.scale * 0.5 + 0.5 * MyAvatar.sensorToWorldScale,
|
y: MyAvatar.scale * 0.5 + 0.2 * MyAvatar.sensorToWorldScale,
|
||||||
z: 2 * MyAvatar.sensorToWorldScale
|
z: 2 * MyAvatar.sensorToWorldScale
|
||||||
},
|
},
|
||||||
visible: true
|
visible: true
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
rotation: Quat.multiply(MyAvatar.orientation, Quat.fromVec3Degrees({x: 0.0, y: 180.0, z: 0.0})),
|
rotation: Quat.multiply(MyAvatar.orientation, Quat.fromVec3Degrees({x: 0.0, y: 180.0, z: 0.0})),
|
||||||
scale: {
|
scale: {
|
||||||
x: 2 * MyAvatar.sensorToWorldScale,
|
x: 2 * MyAvatar.sensorToWorldScale,
|
||||||
y: ((1 - ((BUBBLE_RAISE_ANIMATION_DURATION_MS - delay) / BUBBLE_RAISE_ANIMATION_DURATION_MS)) * MyAvatar.scale * 0.5 + 0.5 * MyAvatar.sensorToWorldScale),
|
y: ((1 - ((BUBBLE_RAISE_ANIMATION_DURATION_MS - delay) / BUBBLE_RAISE_ANIMATION_DURATION_MS)) * MyAvatar.scale * 0.5 + 0.2 * MyAvatar.sensorToWorldScale),
|
||||||
z: 2 * MyAvatar.sensorToWorldScale
|
z: 2 * MyAvatar.sensorToWorldScale
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
rotation: Quat.multiply(MyAvatar.orientation, Quat.fromVec3Degrees({x: 0.0, y: 180.0, z: 0.0})),
|
rotation: Quat.multiply(MyAvatar.orientation, Quat.fromVec3Degrees({x: 0.0, y: 180.0, z: 0.0})),
|
||||||
scale: {
|
scale: {
|
||||||
x: 2 * MyAvatar.sensorToWorldScale,
|
x: 2 * MyAvatar.sensorToWorldScale,
|
||||||
y: MyAvatar.scale * 0.5 + 0.5 * MyAvatar.sensorToWorldScale,
|
y: MyAvatar.scale * 0.5 + 0.2 * MyAvatar.sensorToWorldScale,
|
||||||
z: 2 * MyAvatar.sensorToWorldScale
|
z: 2 * MyAvatar.sensorToWorldScale
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue