ecspresso
    Preparing search index...

    Function createWorldTransform

    • Create a world transform component with position only. Typically used alongside createLocalTransform for initial state.

      Parameters

      • x: number

        The x coordinate

      • y: number

        The y coordinate

      Returns Pick<TransformComponentTypes, "worldTransform">

      Component object suitable for spreading into spawn()