Beams arc to each other. BAM

This commit is contained in:
ericrius1 2015-12-18 15:26:21 -08:00
parent 2c02e7ad63
commit 514cb7a329
3 changed files with 12 additions and 16 deletions

View file

@ -26,7 +26,7 @@ ArcBall = function(spawnPosition) {
var containerBall = Entities.addEntity({
type: "Sphere",
type: "Box",
name: "Arc Ball",
script: scriptURL,
position: Vec3.sum(spawnPosition, {
@ -37,7 +37,7 @@ ArcBall = function(spawnPosition) {
dimensions: {
x: .2,
y: .2,
z: .2
z: .5
},
color: {
red: 15,
@ -53,13 +53,6 @@ ArcBall = function(spawnPosition) {
// },
userData: JSON.stringify({
grabbableKey: {
spatialKey: {
relativePosition: {
x: 0,
y: .1,
z: 0
}
},
invertSolidWhileHeld: true
}
})

View file

@ -42,7 +42,8 @@
dimensions: {x: .1, y: .1, z: 1},
color: {red: 200, green: 10, blue: 10},
position: startPosition,
rotation: emitOrientation
rotation: emitOrientation,
visible: false
});
var color = {
red: 200,
@ -53,6 +54,8 @@
type: "ParticleEffect",
name: "Particle Arc",
parentID: this.entityID,
parentJointIndex: -1,
position: startPosition,
isEmitting: true,
colorStart: color,
color: {

View file

@ -25,10 +25,10 @@ var basePosition = Vec3.sum(MyAvatar.position, Vec3.multiply(1, Quat.getFront(Ca
basePosition.y = MyAvatar.position.y + 1;
// RAVE ITEMS
var lightBall = new LightBall(basePosition);
// var lightBall = new LightBall(basePosition);
// var arcBall = new ArcBall(basePosition);
// var arcBall2 = new ArcBall(Vec3.sum(basePosition, {x: -1, y: 0, z: 0}));
var arcBall = new ArcBall(basePosition);
var arcBall2 = new ArcBall(Vec3.sum(basePosition, {x: -1, y: 0, z: 0}));
var raveStick = new RaveStick(Vec3.sum(basePosition, {x: 1, y: 0.5, z: 1}));
var lightSaber = new LightSaber(Vec3.sum(basePosition, {x: 3, y: 0.5, z: 1}));
@ -81,9 +81,9 @@ function cleanup() {
Entities.deleteEntity(raveRoom);
Entities.deleteEntity(lightZone);
Entities.deleteEntity(floor);
lightBall.cleanup();
// arcBall.cleanup();
// arcBall2.cleanup();
// lightBall.cleanup();
arcBall.cleanup();
arcBall2.cleanup();
raveStick.cleanup();
lightSaber.cleanup();
}