Oh yeah it is seconds now
This commit is contained in:
parent
6dc52ea1b7
commit
e52baa41c3
|
@ -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 html from "@syndicate-lang/html";
|
||||||
import * as timer from "@syndicate-lang/timer";
|
import * as timer from "@syndicate-lang/timer";
|
||||||
import * as wsRelay from "@syndicate-lang/ws-relay";
|
import * as wsRelay from "@syndicate-lang/ws-relay";
|
||||||
|
@ -118,7 +118,7 @@ async function enterScene(
|
||||||
field position: Shapes.ImmediateVector3 = currentPosition();
|
field position: Shapes.ImmediateVector3 = currentPosition();
|
||||||
field rotation: Shapes.ImmediateVector3 = currentRotation();
|
field rotation: Shapes.ImmediateVector3 = currentRotation();
|
||||||
|
|
||||||
const refreshPeriod = Math.floor(1000 / 10);
|
const refreshPeriod = Double(1 / 10);
|
||||||
at ds {
|
at ds {
|
||||||
on message timer.PeriodicTick(refreshPeriod) => {
|
on message timer.PeriodicTick(refreshPeriod) => {
|
||||||
const newPosition = currentPosition();
|
const newPosition = currentPosition();
|
||||||
|
|
Loading…
Reference in New Issue