mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 11:53:28 +02:00
more debug
This commit is contained in:
parent
9c199b23a2
commit
6a01c10453
1 changed files with 3 additions and 3 deletions
|
@ -78,10 +78,10 @@ function update(deltaTime) {
|
|||
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("age:" + properties.age);
|
||||
print("lifetime:" + properties.lifetime);
|
||||
var newLifetime = properties.age + EPHEMERAL_LIFETIME;
|
||||
//print("newLifetime:" + newLifetime);
|
||||
print("newLifetime:" + newLifetime);
|
||||
Entities.editEntity(LightMaker.light, { type: "Light", intensity : intensity, lifetime: newLifetime });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue