Viajar a

From StarLogo Nova Wiki
This page is a translated version of the page Teleport To and the translation is 20% complete.
Other languages:
The Teleport To Block

Usage

Instantly moves to the specified coordinate.

Syntax

Inputs in this block:

  1. a number, the x coordinate
  2. a number, the y coordinate
  3. a number, the z coordinate

Example

This is a model of a quarantine. Note that movement from the unquarantined area to the quarantined area changes the trait quarantined? from 0 to 1. Doctors (pink cubes) remove immune agents (blue) from the quarantine and move them to the unquarantined area. Further, they also find sick agents roaming around the unquarantined area (green terrain) and move them to the quarantine (white terrain). Both the ‘get quarantined’ and ‘end quarantine’ functions use the teleport to block to move agents to their proper locations. The blocks shown above describe the ‘get quarantined’ that relocates unquarantined sick agents to the quarantined area that exists in the square with corners (0,0) and (50,50).