24 lines
No EOL
790 B
JavaScript
24 lines
No EOL
790 B
JavaScript
var userData = {
|
|
"grabbableKey": {"grabbable": false, "wantsTrigger": true}
|
|
};
|
|
|
|
var BALLOON_CAGE_LOCATION = {x: -36.3, y: 4996.88, z: -17.7};
|
|
// Set the scale of the cage
|
|
// setting the scale to 1 doesn't work for some reason
|
|
var BALLOON_CAGE_SCALE = 2;
|
|
var BALLOON_CAGE_MESH_URL = Script.resolvePath("models/container.fbx");
|
|
|
|
Entities.addEntity({
|
|
position: Vec3.sum(BALLOON_CAGE_LOCATION, {x: 0, y: 0, z: 0, w: 0}),
|
|
script: Script.resolvePath("balloonCage.js"),
|
|
type: "Model",
|
|
modelURL: BALLOON_CAGE_MESH_URL,
|
|
shapeType: "box",
|
|
dimensions: {x: 1 * BALLOON_CAGE_SCALE, y: 1 * BALLOON_CAGE_SCALE, z: 1 * BALLOON_CAGE_SCALE},
|
|
name: "Balloon Cage",
|
|
collisionless: false,
|
|
"userData": JSON.stringify(userData)
|
|
|
|
});
|
|
|
|
Script.stop(); |