better starting values for particles

This commit is contained in:
ericrius1 2016-02-01 12:48:40 -08:00
parent 84f862d9c1
commit 81f95c6fc7
2 changed files with 15 additions and 2 deletions

View file

@ -645,6 +645,12 @@ var toolBar = (function() {
type: "ParticleEffect",
isEmitting: true,
particleRadius: 0.1,
emitAcceleration: {x: 0, y: -1, z: 0},
accelerationSpread: {x: 5, y: 0, z: 5},
emitSpeed: 1,
lifespan: 1,
particleRadius: 0.025,
alphaFinish: 0,
emitRate: 100,
textures: "https://hifi-public.s3.amazonaws.com/alan/Particles/Particle-Sprite-Smoke-1.png",
});
@ -1893,6 +1899,7 @@ entityListTool.webView.eventBridge.webEventReceived.connect(function(data) {
currentProperties: properties
};
particleExplorerTool.setActiveParticleEntity(ids[0]);
particleExplorerTool.webView.eventBridge.emitScriptEvent(JSON.stringify(data));
} else {

View file

@ -14,12 +14,18 @@ ParticleExplorerTool = function() {
webView.setVisible(visible);
that.webView = webView;
var webEventReceived = function() {
var webEventReceived = function(data) {
var data = JSON.parse(data);
if (data.messageType === "settings_update") {
Entities.editEntity(that.activeParticleEntity, data.updatedSettings);
}
print("EBL WEB EVENT RECIEVED FROM PARTICLE GUI");
}
webView.eventBridge.webEventReceived.connect(webEventReceived);
that.setActiveParticleEntity = function(id) {
that.activeParticleEntity = id;
}
that.setVisible = function(newVisible) {
visible = newVisible;