mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +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
|
||||
collisionsWillMove: true,
|
||||
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