Portals

Portals

A portal to another world on HiberWorld. Accepts a world ID.

Example

Given the world at https://hiberworld.com/world/4ic3uL830 (opens in a new tab), we use its world ID 4ic3uL830 as an argument.

import { HNode, render } from '@hiber3d/hdk-react';
import { Ground, Portal } from '@hiber3d/hdk-react-components';
 
const World = () => (
  <HNode>
    <Portal worldId="4ic3uL830" z={5} />
    <Ground hilly={0.1} />
  </HNode>
);
 
render(<World />);

Portal