Skip to content

@relu-interactives/spatial-ecs


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

Function: createXRMultiplayerComponent() ​

ts
function createXRMultiplayerComponent(
   world, 
   entityId, ...
   args): XRMultiplayerComponent;

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

Parameters ​

ParameterType
worldWorld
entityIdnumber
...args[Partial<Pick<XRMultiplayerComponent, | "sendRate" | "interpolationMs" | "avatarStyle" | "headPrefab" | "leftHandPrefab" | "rightHandPrefab" | "shareHandJoints" | "nameTags" | "colocation" | "calibrateOnStart" | "minPointDistance">>]

Returns ​

XRMultiplayerComponent