MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / newPosition

Function newPosition

modules/benchmarks-ts/src/ia_loop.ts:15–30  ·  view source on GitHub ↗
(
  entity_id: number,
  x: number,
  y: number,
  z: number
)

Source from the content-addressed store, hash-verified

13import { t, type ReducerCtx } from 'spacetimedb/server';
14
15function newPosition(
16 entity_id: number,
17 x: number,
18 y: number,
19 z: number
20): Position {
21 return {
22 entity_id,
23 x,
24 y,
25 z,
26 vx: x + 10.0,
27 vy: y + 20.0,
28 vz: z + 30.0,
29 };
30}
31
32function newVelocity(
33 entity_id: number,

Callers 1

ia_loop.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…