Boundary Box

Willkommen in der Transport Fever Community

Welcome to the fan community of Transport Fever and Train Fever, the economic simulators of Urban Games. The community is free for you to share and inform yourself about the game. We cultivate a friendly and objective interaction with each other and our team will be happy to answer any questions you may have.

 

Registration and use is of course free for you.

 

We wish you a lot of fun and hope for active participation.

The Team of the Transport-Fever Community

  • Eine kurze Erklärung der Boundary Box für Gebäude. A brief explanation on how to define a boundary box for buildings and terminals.
    Code
    1. result.colliders = {
    2. colliderutil.createBox ({ -20, -90, 0 }, { 120, 30, 2 }),
    3. colliderutil.createBox ({ 60, 80, 0 }, { 310, 140, 2 })
    4. }


    English


    The game requires information about the size of a building or a terminal in its .con in order to keep the games AI from attempting to build roads or buildings across it. This is done in the above shown block.


    The coordinates in this line work a little different from those that define fields.


    colliderutil.createBox ({x, y, z }, { a, b, c }),
    x, y, z are the coordinates of the boundary box center. X as usual marks the spot.
    a, b, c define the distances between point x, y, z and the boundary box limits as shown in the following picture:



Share