mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:42:58 +02:00
add inversiona nd spatialkey
This commit is contained in:
parent
9c29ba2ca3
commit
eb48342d07
1 changed files with 10 additions and 1 deletions
|
@ -43,5 +43,14 @@ var wand = Entities.addEntity({
|
||||||
//must be enabled to be grabbable in the physics engine
|
//must be enabled to be grabbable in the physics engine
|
||||||
collisionsWillMove: true,
|
collisionsWillMove: true,
|
||||||
compoundShapeURL: WAND_COLLISION_SHAPE,
|
compoundShapeURL: WAND_COLLISION_SHAPE,
|
||||||
script: WAND_SCRIPT_URL
|
script: WAND_SCRIPT_URL,
|
||||||
|
userData:JSON.stringify({
|
||||||
|
grabbableKey:{
|
||||||
|
invertSolidWhileHeld:true,
|
||||||
|
spatialKey:{
|
||||||
|
relativePosition:{x:0,y:1,z:0},
|
||||||
|
relativeRotation:Quat.fromPitchYawRollDegrees(0,90,0)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
});
|
});
|
Loading…
Reference in a new issue