Warning

This document is slightly outdated. FIXME: Mentions welcome domain, welcome domain url malformed, mentions GoTo app

Tutorial: Crear un Portal

Portals in Overte transport you to the domain of your choice. You can use these portals to travel to a domain you visit frequently instead of using the GoTo app on your HUD or Tablet.

En Esta Página:

Prerrequisitos

Considera familiarizarte con los siguientes conceptos antes de comenzar este tutorial:

Escribe un Script para el Portal

A portal is an entity with a script attached (entity script). This attached script defines what happens when a user comes in contact with the portal. We've used portal.js, the script used to teleport in Overte domains. You can also write your own script to suit your needs.

El script portal.js que hemos utilizado:

  • Uses Overte's JavaScript API to determine when a user walks into the entity and the teleport destination.

  • Incluye un sonido que se reproducirá cada vez que un usuario use el portal.

  • Teletransporta a un usuario al destino especificado.

Crear y Editar una Entidad para Usar como Portal

Any entity you create to be used as a portal has to be collisionless so that the script can detect when you walk into the entity.

  1. En la interfaz, trae tu HUD o tableta y ve a Crear.

  2. Crear una entidad para usar como portal. Puede ser un modelo 3D o una entidad de caja o esfera.

  3. Ve a a la pestaña "Properties" y desplázate hacia abajo hasta "Behavior".

  4. Junto a "Script", pega la URL del script. En este caso, es 'portal.js'.

  5. El script toma la ubicación a la que deseas teletransportarte desde el campo "User Data" debajo de "Behavior".

  6. Add hifi:// welcome (Overte's welcome domain) to the 'User Data' field.

  7. Desplázate hacia abajo hasta "Collision" y desmarca "Collides" (Choque). Esto es para que un usuario pueda ingresar a la entidad y activar el script.

  8. Sal del modo Crear y camina hacia dentro de la entidad.

You will be teleported to Overte's welcome domain.

Ver también