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. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Roll a ball project script issue

Discussion in 'Scripting' started by Dulas, Jun 7, 2015.

  1. Dulas

    Dulas

    Joined:
    May 31, 2015
    Posts:
    15
    Hey! I used the script from this project: http://unity3d.com/learn/tutorials/projects/roll-a-ball/moving-the-player . Yet, I get this "error CS1061 : Type 'UnityEngine.Rigidbody' does not contain a definition for 'Addforce' and no extension method 'Addforce' type 'Rigidbody' could be found ( are you missing a using directive or an assembly reference?"
    How can I fix this problem? Thanks in advance.
     
  2. DarkBladeNemo

    DarkBladeNemo

    Joined:
    Aug 23, 2013
    Posts:
    116
    Hey can you paste your script so we can have a look?
     
  3. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    AddForce. Those pesky upper case letters are important.
     
  4. Dulas

    Dulas

    Joined:
    May 31, 2015
    Posts:
    15
    Lol...thanks BoredMormon, needed to uppercase the F in"Addforce" XD thanks for helping out, guys :D