27 lines
No EOL
973 B
JavaScript
27 lines
No EOL
973 B
JavaScript
module.exports = {
|
|
playStarConfetti: function(){
|
|
|
|
var confettiProperties = {
|
|
type: "ParticleEffect",
|
|
position: Vec3.sum(MyAvatar.position, Quat.getFront(MyAvatar.orientation)),
|
|
azimuthFinish: 1.0,
|
|
azmiuthStart: 1.0,
|
|
emitRate: 4,
|
|
emitSpeed: .25,
|
|
lifespan: 1,
|
|
particleradius: 0.025,
|
|
radiusFinish: 0.05,
|
|
radiusSpread: 0,
|
|
radiusStart: 0.01,
|
|
speedSpread: 0.1,
|
|
textures: "https://hifi-content.s3.amazonaws.com/liv/dev/Silver_star.png",
|
|
visible: true,
|
|
isEmitting: true,
|
|
accelerationSpread: {x: .5, y:.5, z: .5},
|
|
emitAcceleration: {x: 0, y: 0, z:0},
|
|
emitOrientation: {x: Math.random(), y: Math.random(), z: Math.random()},
|
|
lifetime: 5.0
|
|
};
|
|
particles = Entities.addEntity(confettiProperties);
|
|
}
|
|
} |