mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 09:29:16 +02:00
rats
This commit is contained in:
parent
b93807b1a7
commit
b8f1c96685
1 changed files with 13 additions and 9 deletions
|
@ -189,15 +189,19 @@ EquipHotspotBuddy.prototype.update = function(deltaTime, timestamp, controllerDa
|
|||
var UNEQUIP_KEY = "u";
|
||||
|
||||
function getWearableData(props) {
|
||||
return {
|
||||
joints: {
|
||||
LeftHand: [ props.grab.equippableLeftPosition, props.grab.equippableLeftRotation ],
|
||||
RightHand: [ props.grab.equippableRightPosition, props.grab.equippableRightRotation ]
|
||||
},
|
||||
indicatorURL: props.grab.equippableIndicatorURL,
|
||||
indicatorScale: props.grab.equippableIndicatorScale,
|
||||
indicatorOffset: props.grab.equippableIndicatorOffset
|
||||
};
|
||||
if (props.grab.equippable) {
|
||||
return {
|
||||
joints: {
|
||||
LeftHand: [ props.grab.equippableLeftPosition, props.grab.equippableLeftRotation ],
|
||||
RightHand: [ props.grab.equippableRightPosition, props.grab.equippableRightRotation ]
|
||||
},
|
||||
indicatorURL: props.grab.equippableIndicatorURL,
|
||||
indicatorScale: props.grab.equippableIndicatorScale,
|
||||
indicatorOffset: props.grab.equippableIndicatorOffset
|
||||
};
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
function getAttachPointSettings() {
|
||||
|
|
Loading…
Reference in a new issue