From b0501674bedc67bf2d46517b55bcda814432c672 Mon Sep 17 00:00:00 2001 From: Robert Dorn Date: Wed, 11 Dec 2024 11:16:58 +0100 Subject: [PATCH] changed onTick time from ms to s --- src/BasicBehaveEngine/nodes/lifecycle/onTick.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BasicBehaveEngine/nodes/lifecycle/onTick.ts b/src/BasicBehaveEngine/nodes/lifecycle/onTick.ts index 687c0f2..1393537 100644 --- a/src/BasicBehaveEngine/nodes/lifecycle/onTick.ts +++ b/src/BasicBehaveEngine/nodes/lifecycle/onTick.ts @@ -15,7 +15,7 @@ export class OnTickNode extends BehaveEngineNode { override processNode(flowSocket?: string) { this.graphEngine.processNodeStarted(this); - const tickTime = Date.now(); + const tickTime = Date.now() / 1000; if (isNaN(this._startTime)) { this.outValues.timeSinceStart = { id: "timeSinceStart", value: [0], type: this._floatTypeIndex }; this.outValues.timeSinceLastTick = { id: "timeSinceLastTick", value: [0], type: this._floatTypeIndex };