mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 05:03:31 +02:00
more debug
This commit is contained in:
parent
4abb251728
commit
9c199b23a2
1 changed files with 5 additions and 5 deletions
|
@ -77,12 +77,12 @@ function update(deltaTime) {
|
|||
var intensity = (MINIMUM_LIGHT_INTENSITY + (MAXIMUM_LIGHT_INTENSITY + (Math.sin(totalTime) * MAXIMUM_LIGHT_INTENSITY)));
|
||||
intensity += randFloat(-LIGHT_INTENSITY_RANDOMNESS, LIGHT_INTENSITY_RANDOMNESS);
|
||||
var properties = Entities.getEntityProperties(LightMaker.light, ["age", "lifetime"]);
|
||||
print("props:" +JSON.stringify(properties));
|
||||
print("age:" + properties.age);
|
||||
print("lifetime:" + properties.lifetime);
|
||||
//print("props:" +JSON.stringify(properties));
|
||||
//print("age:" + properties.age);
|
||||
//print("lifetime:" + properties.lifetime);
|
||||
var newLifetime = properties.age + EPHEMERAL_LIFETIME;
|
||||
print("newLifetime:" + newLifetime);
|
||||
Entities.editEntity(LightMaker.light, { intensity : intensity, lifetime: newLifetime });
|
||||
//print("newLifetime:" + newLifetime);
|
||||
Entities.editEntity(LightMaker.light, { type: "Light", intensity : intensity, lifetime: newLifetime });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue