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

horizontal force trampoline unity

Discussion in 'Scripting' started by FalcoesFlamejantes, Apr 5, 2020.

  1. FalcoesFlamejantes

    FalcoesFlamejantes

    Joined:
    May 30, 2018
    Posts:
    7
    Hi, Im a beginner in unity and a begginer in coding.
    I'd like to know if anyone could tell me how to apply a horizontal force to an object like my player? It would be like super mario's trampoline.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,971
    The function you want is AddForce... check out youtube for some great tutorials outlining everything you need to know, give 'em a shot, and if you have specific questions come on back here and post details. If you post code be sure to format it properly (see first post in this forum).
     
  3. FalcoesFlamejantes

    FalcoesFlamejantes

    Joined:
    May 30, 2018
    Posts:
    7
    Thank you for your fast answer sir, I'll check on youtube first before coming back if I don't find the answer.