mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:43:31 +02:00
Use FBX for tablet proxy
This commit is contained in:
parent
3732de51a3
commit
c89955b416
2 changed files with 4 additions and 2 deletions
BIN
scripts/system/assets/models/tinyTablet.fbx
Normal file
BIN
scripts/system/assets/models/tinyTablet.fbx
Normal file
Binary file not shown.
|
@ -18,7 +18,8 @@
|
||||||
|
|
||||||
var // Overlay
|
var // Overlay
|
||||||
proxyOverlay = null,
|
proxyOverlay = null,
|
||||||
TABLET_PROXY_DIMENSIONS = { x: 0.0638, y: 0.0965, z: 0.0045 },
|
TABLET_PROXY_MODEL = Script.resolvePath("./assets/models/tinyTablet.fbx"),
|
||||||
|
TABLET_PROXY_DIMENSIONS = { x: 0.0637, y: 0.0965, z: 0.0046 }, // Proportional to tablet proper.
|
||||||
TABLET_PROXY_POSITION_LEFT_HAND = {
|
TABLET_PROXY_POSITION_LEFT_HAND = {
|
||||||
x: 0,
|
x: 0,
|
||||||
y: 0.07, // Distance from joint.
|
y: 0.07, // Distance from joint.
|
||||||
|
@ -116,7 +117,8 @@
|
||||||
|
|
||||||
function enterProxyVisible(hand) {
|
function enterProxyVisible(hand) {
|
||||||
proxyHand = hand;
|
proxyHand = hand;
|
||||||
proxyOverlay = Overlays.addOverlay("cube", {
|
proxyOverlay = Overlays.addOverlay("model", {
|
||||||
|
url: TABLET_PROXY_MODEL,
|
||||||
parentID: MyAvatar.SELF_ID,
|
parentID: MyAvatar.SELF_ID,
|
||||||
parentJointIndex: handJointIndex(proxyHand),
|
parentJointIndex: handJointIndex(proxyHand),
|
||||||
localPosition: Vec3.multiply(avatarScale,
|
localPosition: Vec3.multiply(avatarScale,
|
||||||
|
|
Loading…
Reference in a new issue