mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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",
|
||||
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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue