mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-02 05:01:44 +02:00
correct positioning on equip
This commit is contained in:
parent
f4ee9acb9c
commit
6765973a4a
2 changed files with 28 additions and 3 deletions
|
@ -39,11 +39,10 @@
|
|||
direction: Quat.getFront(props.rotation)
|
||||
}
|
||||
|
||||
var intersection = Entities.findRayIntersection(pickRay, true, [], [_this.entityID]);
|
||||
var intersection = Entities.findRayIntersection(pickRay, true);
|
||||
|
||||
if (intersection.intersects) {
|
||||
var name = Entities.getEntityProperties(intersection.entityID);
|
||||
print("intersection")
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -65,7 +65,33 @@ var marker = Entities.addEntity({
|
|||
z: 0.1641
|
||||
},
|
||||
name: "marker",
|
||||
script: MARKER_SCRIPT_URL
|
||||
script: MARKER_SCRIPT_URL,
|
||||
userData: JSON.stringify({
|
||||
wearable: {
|
||||
joints: {
|
||||
RightHand: [{
|
||||
x: 0.001109793782234192,
|
||||
y: 0.13991504907608032,
|
||||
z: 0.05035984516143799
|
||||
}, {
|
||||
x: -0.7360993027687073,
|
||||
y: -0.04330085217952728,
|
||||
z: -0.10863728821277618,
|
||||
w: -0.6666942238807678
|
||||
}],
|
||||
LeftHand: [{
|
||||
x: 0.007193896919488907,
|
||||
y: 0.15147076547145844,
|
||||
z: 0.06174466013908386
|
||||
}, {
|
||||
x: -0.4174973964691162,
|
||||
y: 0.631147563457489,
|
||||
z: -0.3890438377857208,
|
||||
w: -0.52535080909729
|
||||
}]
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue