mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 09:24:06 +02:00
Added grab offsets to createPingPongGun.js
This commit is contained in:
parent
77264b3f99
commit
2dbb3bd84a
1 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,14 @@ var pingPongGun = Entities.addEntity({
|
||||||
collisionSoundURL: COLLISION_SOUND_URL,
|
collisionSoundURL: COLLISION_SOUND_URL,
|
||||||
userData: JSON.stringify({
|
userData: JSON.stringify({
|
||||||
grabbableKey: {
|
grabbableKey: {
|
||||||
|
spatialKey: {
|
||||||
|
relativePosition: {
|
||||||
|
x: -0.05,
|
||||||
|
y: 0,
|
||||||
|
z: 0.0
|
||||||
|
},
|
||||||
|
relativeRotation: Quat.fromPitchYawRollDegrees(0, -90, -90)
|
||||||
|
},
|
||||||
invertSolidWhileHeld: true
|
invertSolidWhileHeld: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue