Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
This question was closed Jun 22, 2016 at 02:58 PM by Astro_Shogun for the following reason:

I have solved it.

avatar image
0
Question by Astro_Shogun · Jun 21, 2016 at 07:25 PM · scripting problemmovementball

Roll a Ball - Moving the Player - Ball Not Moving

I have been following the tutorial, Roll A Ball and have progressed up to the point of the "Move the Player" section. I have used the script from the tutorial page and have assigned it to the "Player" object. The ball is not moving. When I press play, I can see the player button turn blue, and the game enter playmode, only the ball does move what so ever. I do not recieve any errors in the script either. All help would be much appreciated. Thankyou.

Here is the script I am using in the 'Player' object.

 using UnityEngine;
 using System.Collections;
 
 public class PlayerController : MonoBehaviour {
 
     public float speed;
 
     private Rigidbody rb;
 
     void Start ()
     {
         rb = GetComponent<Rigidbody>();
     }
 
     void FixedUpdate ()
     {
         float moveHorizontal = Input.GetAxis ("Horizontal");
         float moveVertical = Input.GetAxis ("Vertical");
 
         Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
 
         rb.AddForce (movement * speed);
     }
 }





Comment
Add comment · Show 6
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 SarperS · Jun 22, 2016 at 05:15 AM 0
Share

What value did you assign to the variable "speed" in the inspector?

avatar image Astro_Shogun SarperS · Jun 22, 2016 at 02:56 PM 0
Share

I changed the speed value to many different values and it still did not move.

avatar image Brijs · Jun 22, 2016 at 07:37 AM 0
Share

Increase value of speed from inspector

avatar image Astro_Shogun Brijs · Jun 22, 2016 at 02:56 PM 0
Share

I changed the speed value to many different values and it still did not move.

avatar image rmiles55 · Sep 11, 2016 at 01:31 AM 1
Share

The solution is to uncheck "Is $$anonymous$$inematic" and "Use Gravity" under the rigidbody component tab.

Hope this helps someone, as I searched for a good hour before figuring this out.

:)

avatar image doug1862 rmiles55 · Nov 11, 2016 at 08:28 PM 0
Share

Same problem I had. "Is $$anonymous$$inematic" somehow became checked for the player object. I spent an hour wondering why the ball no longer moved before comparing my Inspector settings with what was on the tutorial screen. On the bright side, I learned what kinematics is by reading the Wikipedia article about it. The short description is that it is a branch of mechanics that describes the motion of "bodies without consideration of the masses of those objects nor the forces that may have caused the motion." Not what we are doing by applying a force to a rigid body with mass.

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

77 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 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 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 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 avatar image

Related Questions

Isometric Movent Issue 0 Answers

my wasd is not linking with my camera, can anyone help?,My Camera is not syncing with my wasd movement, can anyone help? 0 Answers

Stop movement on collision 1 Answer

UI Button Movement Problem 0 Answers

Why can I only move upwards? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges