Skip to content

Commit

Permalink
changed onTick time from ms to s
Browse files Browse the repository at this point in the history
  • Loading branch information
pfcDorn committed Dec 11, 2024
1 parent c12b3d5 commit b050167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/lifecycle/onTick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit b050167

Please sign in to comment.