Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Building a dockyard simulation in Unity

Discussion in 'Getting Started' started by tomchambers, Mar 21, 2016.

  1. tomchambers

    tomchambers

    Joined:
    Mar 21, 2016
    Posts:
    19
    I have a simulation I’d like to create, but I’m not sure if Unity is the appropriate environment to create it in. Essentially it’s a dockyard like the one pictured below, with a bunch of container like objects which can be picked up and manoeuvred by a crane or multiple cranes that move the containers to other points on the map.



    The movement of the boxes would be random, but ideally there would be a queue which would contain instructions for box N to position X,Y. The cranes would process instructions in the queue.

    There would also be a first person character to look around the simulation.

    From what I’ve build so far, Unity seems best suited to creating interactions for objects or between specific objects when they collide, but might work less well when it comes to a globally managed environment.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,992
    Ryiah, tomchambers and JoeStrout like this.
  3. tomchambers

    tomchambers

    Joined:
    Mar 21, 2016
    Posts:
    19
    Great! I'm not quite sure how I would model it. I don't want the crane to be user-controlled, I want to have it perform a sequence of instructions. Should I make an invisible gameobject that gives instructions to the cranes, containers etc?
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,992
    Yes, have some controller script to do that.

    Script can then take first sequence from list (or basically pick random column and row where to go)
    then start crane movement towards target container, pickup the container, transport it to target position.. and repeat..

    Are you familiar with c# / unityscript ?
     
  5. tomchambers

    tomchambers

    Joined:
    Mar 21, 2016
    Posts:
    19
    I am a web developer, so I have plenty of experience with javascript, and I have built a few simple applications using the Unity version of it.
     
  6. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,510
    As a fellow web developer, I strongly advise learning C#. It will not only be easier to find tutorials and such with Unity, it'll help you out in your career!