Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Train moving

Discussion in 'Scripting' started by late98, Oct 23, 2014.

  1. late98

    late98

    Joined:
    Oct 7, 2014
    Posts:
    7
    Hi
    i am makig subway train simulator.
    how i can make that train have leveler how fast it moves. like if there is 3 levels level 1 2 3 if leveler is on level 1 train will accelerate to 20 km/h and when its on level 2 train will accelerate from 20 to 50 km/h and on level 3 from 50 to 100 km/h. and when its on -1 train will brake. like in world of subway games in cockpit there is leveler.
     
  2. Deleted User

    Deleted User

    Guest

    Your asking how to build to much at once..
    But, what you need to do is work on the basics first,

    Figure out how to move your train in one direction, speed it up, and slow it down..
    Once you do that, you will know how to stop it..

    Then work on figuring out how to turn your tain..
    Then add some type of track layer..

    You have a lot of steps ahead of you..
    But you must first start with the basics..
    http://docs.unity3d.com/ScriptReference/Transform.html

    http://unity3d.com/learn/tutorials/projects/roll-a-ball
     
    SparrowGS likes this.
  3. late98

    late98

    Joined:
    Oct 7, 2014
    Posts:
    7
    thanks