• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Sarti · Nov 18, 2013 at 01:34 PM · errortutorial

I'm doing the Roll-A-Ball tutorial and I entered the Player Controller script exactly as the tutorial has it, but I put mine in Unitron and errors are occurring that I don't know how to fix.

alt text

screen shot 2013-11-11 at 8.34.17 am.png (393.4 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by GameVortex · Nov 18, 2013 at 01:52 PM

On line 14 of your script you should add your variable "movement" instead of the type "Vector3":

 rigidbody.AddForce(movement);
Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sarti · Nov 25, 2013 at 01:04 PM 0
Share

I did this and it seemed to fix the errors I had, but now it is saying the referenced script on this behavior is missing for "Ground" and "Player" in the hierarchy.

avatar image GameVortex · Nov 25, 2013 at 08:28 PM 0
Share

That as the message says means that your objects are missing some scripts. Click on the objects in the hierarchy and check their inspector, and add any scripts that has gone missing.

avatar image
0

Answer by meat5000 · Nov 18, 2013 at 01:36 PM

You need to add some Vector to your Vector3

Vector3(x,y,z)

Looking at it, you've simply dropped the wrong word into the function, putting in the Type rather than the actual variable you've created of that type.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Error CS1502 Help! 1 Answer

Error CS1502 help! 1 Answer

Burg Zerg Arcade Tutorial Help 3 Answers

Help Solve This 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges