Search Unity

Off-Road Truck Template 2 (Updated)

Discussion in 'Assets and Asset Store' started by UnityLighting, Dec 4, 2016.

  1. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,349
    Watch the above video :
     
  2. rajjutech

    rajjutech

    Joined:
    Dec 24, 2018
    Posts:
    10
    Hi,
    Where can i find the new vehicle assets? Your template has only one truck and even Volvo truck is missing (video tutorial).
    Can you please show me the pointers from where i can get/buy new trucks from asset stores so that it works in your template with out any issues?
     
  3. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,349
    1.You can model it
    2.You can search and find them on assetstore
     
    alienorbit likes this.
  4. denis3510

    denis3510

    Joined:
    May 16, 2020
    Posts:
    10
    i have created a new scene and now i want to add this as level 6 button in the level select screen for example, i found the "On Click LevelSelect.SelectLevel and then the values 0 to 4(the 5 levels), but the question is for example i have now my scene which is level 6 and i want to add it so the button redirects me to the correct scene, how i redirect the button to the level by this values?
     
  5. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,349
    Hi
    You can set number 5 to the button OnClick as level 6
    Also your Scene name must be similar to the other levels
    You can select LevelSelect game object under Canvas to see LevelSelect
    script for level selection settings
     
  6. denis3510

    denis3510

    Joined:
    May 16, 2020
    Posts:
    10
    Hi, Thank you .
    I found a bug or i am not exactly sure about that but i managed to fix it,
    The bug was when i play with the mobile ui when you hold gas pedal and left steer at the same time it was not steering good only to left side.. i found in the InputSystem script the function Steer and there this if statement and it was:
    Code (CSharp):
    1.  
    2.         if (state)
    3.             steerInput = Mathf.Lerp (steerInput, 1f, Time.deltaTime * 34);
    4.         else
    5.             steerInput = Mathf.Lerp (motorInput, -1f, Time.deltaTime * 34);
    i changed the the "motorInput" to "steerInput" and it solved the problem for me..
    can you check it and tell me if i was wrong about that solution ?..
     
  7. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,349
    Your solution is no correct logically
    the original code is corrects
    Maybe the problem is from UI system or device touch
     
  8. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,349
    New update October 2021:
    Released: Oct 14, 2021

    Update 2.2 October 2022(Downloadable from Unity 2020 or above editors):

    - Added color grading effect

    - Fixed small bugs

    - Added terrain deformation scripts and guide



    Terrain Deformation Guide
     
    Last edited: Oct 14, 2021 at 8:03 PM
unityunity