• 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 It_Isn't_Actualy_Me · Jan 02, 2011 at 07:41 PM · physicsball

Ball Physics Problems

Hey, Ive been messing around in Unity these past few days with a sphere trying to get a few things right but I have absoloutly no idea =/.

My first question is I have a sphere that moves around but I can't make it look as though its "rolling" how do I do this?

My second question is can I make my ball bounce along other objects, and make it controllable whilst bouncing?

And my third is I have a flat plane made from a cube and a curved plane next to it, when I move onto the curved I can't go agaisnt the force and move up the cube my sphere only falls down, I've tryed messing with gravity but that doesn't change anything.

Thanks, SHAY

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
3
Best Answer

Answer by Jason B · Jan 03, 2011 at 03:18 AM

If your intent is to make the ball physics-enabled only, it's easy to make your ball roll by applying some higher friction to the physics material that is attached to the rigidbody (I believe dynamic friction will help you most with it, but try increasing both static and dynamic; if either one is too low, you'll get a ball that keeps wanting to slide, and unless your ball is made of ice, it typically doesn't happen).

Friction is the answer to the second part of your problem as well. Increase the friction of the physics material and you should have less of a problem climbing that hill.

Once you increase the friction though so that the ball is behaving realistically, you may want to start using applyTorque to spin the ball instead of applyForce to push the ball around. This will drastically enhance how realistically it rolls about, because as you probably know, this is similar to how a wheel on a car operates. It doesn't mobilize by being pushed by an external force, it mobilizes by spinning.

Hope this helps. I made a physics-based ball rolling 3D platformer in Unity so I know a lot about this subject. :)

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
avatar image
-1
Best Answer

Answer by Justin Warner · Jan 02, 2011 at 09:32 PM

  1. You must animate the ball... If W is pressed, do this animation. Animate in 3D Modeling software. http://unity3d.com/support/documentation/ScriptReference/Animation.html

  2. To make it bounce, have you tried adding rigid body, and changing the physics of the material around it? I don't know the exact answer to be honest...

  3. Are you using a controller script that came with Unity? If so, their is something with the word slope in it, change that around...

Also, for future references, you should separate all questions in their own... This keeps it neat, and you get more answers (For example, I don't know the answer to 2... But someone else might, but they don't want to just answer one question, if that makes sense =) ).

Have a good one and good luck!

Comment
Add comment · Show 1 · 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 It_Isn't_Actualy_Me · Jan 02, 2011 at 09:51 PM 0
Share

Cheers and Thanks alot =D

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Simple 2D smooth ball movement 1 Answer

Make a rolling ball always on ground without falling when reaching the edges of the map 1 Answer

Roulette Ball Spin 1 Answer

Kick a Ball - Add Force? 2 Answers

How do I move my object through physics with my keyboard? 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