mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-09 21:51:05 +02:00
better starting values for particles
This commit is contained in:
parent
84f862d9c1
commit
81f95c6fc7
2 changed files with 15 additions and 2 deletions
|
@ -645,6 +645,12 @@ var toolBar = (function() {
|
||||||
type: "ParticleEffect",
|
type: "ParticleEffect",
|
||||||
isEmitting: true,
|
isEmitting: true,
|
||||||
particleRadius: 0.1,
|
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,
|
emitRate: 100,
|
||||||
textures: "https://hifi-public.s3.amazonaws.com/alan/Particles/Particle-Sprite-Smoke-1.png",
|
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
|
currentProperties: properties
|
||||||
};
|
};
|
||||||
|
|
||||||
|
particleExplorerTool.setActiveParticleEntity(ids[0]);
|
||||||
particleExplorerTool.webView.eventBridge.emitScriptEvent(JSON.stringify(data));
|
particleExplorerTool.webView.eventBridge.emitScriptEvent(JSON.stringify(data));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -14,12 +14,18 @@ ParticleExplorerTool = function() {
|
||||||
webView.setVisible(visible);
|
webView.setVisible(visible);
|
||||||
that.webView = webView;
|
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");
|
print("EBL WEB EVENT RECIEVED FROM PARTICLE GUI");
|
||||||
}
|
}
|
||||||
|
|
||||||
webView.eventBridge.webEventReceived.connect(webEventReceived);
|
webView.eventBridge.webEventReceived.connect(webEventReceived);
|
||||||
|
|
||||||
|
that.setActiveParticleEntity = function(id) {
|
||||||
|
that.activeParticleEntity = id;
|
||||||
|
}
|
||||||
|
|
||||||
that.setVisible = function(newVisible) {
|
that.setVisible = function(newVisible) {
|
||||||
visible = newVisible;
|
visible = newVisible;
|
||||||
|
|
Loading…
Reference in a new issue