mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 17:52:26 +02:00
making requested changes
This commit is contained in:
parent
a0bd2f67ec
commit
9ca3805499
2 changed files with 4 additions and 4 deletions
|
@ -160,7 +160,7 @@ PickResultPointer StylusPick::getEntityIntersection(const StylusTip& pick) {
|
|||
|
||||
// TODO: Use the xz projection method for Sphere and Quad.
|
||||
if (entityType == EntityTypes::Gizmo) {
|
||||
normal = entityRotation * Vectors::UNIT_NEG_Y;
|
||||
normal = entityRotation * Vectors::UNIT_Y;
|
||||
} else {
|
||||
normal = entityRotation * Vectors::UNIT_Z;
|
||||
}
|
||||
|
|
|
@ -176,10 +176,10 @@ WebTablet = function (url, width, dpi, hand, location, visible) {
|
|||
this.homeButtonID = Overlays.addOverlay("circle3d", {
|
||||
name: "homeButton",
|
||||
localPosition: { x: HOME_BUTTON_X_OFFSET, y: HOME_BUTTON_Y_OFFSET, z: -HOME_BUTTON_Z_OFFSET },
|
||||
localRotation: { x: 0, y: 1, z: 0, w: 0},
|
||||
localRotation: Quat.fromVec3Degrees({ x: 180, y: 180, z: 0}),
|
||||
dimensions: { x: homeButtonDim, y: homeButtonDim, z: homeButtonDim },
|
||||
solid: true,
|
||||
alpha: 0.0,
|
||||
alpha: 1.0,
|
||||
visible: visible,
|
||||
drawInFront: false,
|
||||
parentID: this.tabletEntityID,
|
||||
|
@ -189,7 +189,7 @@ WebTablet = function (url, width, dpi, hand, location, visible) {
|
|||
this.homeButtonHighlightID = Overlays.addOverlay("circle3d", {
|
||||
name: "homeButtonHighlight",
|
||||
localPosition: { x: -HOME_BUTTON_X_OFFSET, y: HOME_BUTTON_Y_OFFSET, z: -HOME_BUTTON_Z_OFFSET },
|
||||
localRotation: { x: 0, y: 1, z: 0, w: 0},
|
||||
localRotation: { x: 0, y: -1, z: 0, w: 0},
|
||||
dimensions: { x: homeButtonDim, y: homeButtonDim, z: homeButtonDim },
|
||||
color: {red: 255, green: 255, blue: 255},
|
||||
solid: true,
|
||||
|
|
Loading…
Reference in a new issue