diff --git a/src/index.ts b/src/index.ts index 472e0e4..ccfde8f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { is, fromJS, Dataflow, Dataspace, Embedded, Ref, Schemas, Turn } from "@syndicate-lang/core"; +import { is, fromJS, Dataflow, Dataspace, Double, Embedded, Ref, Schemas, Turn } from "@syndicate-lang/core"; import * as html from "@syndicate-lang/html"; import * as timer from "@syndicate-lang/timer"; import * as wsRelay from "@syndicate-lang/ws-relay"; @@ -118,7 +118,7 @@ async function enterScene( field position: Shapes.ImmediateVector3 = currentPosition(); field rotation: Shapes.ImmediateVector3 = currentRotation(); - const refreshPeriod = Math.floor(1000 / 10); + const refreshPeriod = Double(1 / 10); at ds { on message timer.PeriodicTick(refreshPeriod) => { const newPosition = currentPosition();