mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 09:48:44 +02:00
Ping pong gun lines up with hand
This commit is contained in:
parent
17af34a3be
commit
77264b3f99
3 changed files with 29 additions and 0 deletions
|
@ -44,6 +44,19 @@ LightSaber = function(spawnPosition) {
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var light = Entities.addEntity({
|
||||||
|
type: 'Light',
|
||||||
|
name: "raveLight",
|
||||||
|
parentID: saberHandle,
|
||||||
|
dimensions: {
|
||||||
|
x: 30,
|
||||||
|
y: 30,
|
||||||
|
z: 30
|
||||||
|
},
|
||||||
|
color: {red: 200, green: 10, blue: 200},
|
||||||
|
intensity: 5
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
Entities.deleteEntity(saberHandle);
|
Entities.deleteEntity(saberHandle);
|
||||||
|
|
|
@ -1153,6 +1153,14 @@
|
||||||
resetMe: true
|
resetMe: true
|
||||||
},
|
},
|
||||||
grabbableKey: {
|
grabbableKey: {
|
||||||
|
spatialKey: {
|
||||||
|
relativePosition: {
|
||||||
|
x: -0.05,
|
||||||
|
y: 0,
|
||||||
|
z: 0.0
|
||||||
|
},
|
||||||
|
relativeRotation: Quat.fromPitchYawRollDegrees(0, -90, -90)
|
||||||
|
},
|
||||||
invertSolidWhileHeld: true
|
invertSolidWhileHeld: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1134,6 +1134,14 @@ MasterReset = function() {
|
||||||
resetMe: true
|
resetMe: true
|
||||||
},
|
},
|
||||||
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