Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / createNetworkTransformComponent

Function: createNetworkTransformComponent() ​

ts
function createNetworkTransformComponent(
   world, 
   entityId, ...
   args): NetworkTransformComponent;

Defined in: factories/components/NetworkFactory.ts:16

Parameters ​

ParameterType
worldWorld
entityIdnumber
...args[Partial<Pick<NetworkTransformComponent, | "enabled" | "sendRate" | "interpolationMs" | "syncRotation" | "teleportDistance">>]

Returns ​

NetworkTransformComponent