Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by RacingRapist · Jul 28, 2013 at 05:39 PM · physicscubespherestickslip

How to make my rotating sphere sticky?

Hi, I have a cube and a sphere both made of Rubber and both have a rigidbody.

Here are the cube's parameters that I've changed from default:

  • Freeze position on Z

  • Freeze Rotation on every axis

Here are the sphere's parameters that I've changed from default :

  • Does not use gravity

  • Is kinematic

I place my cube centered above my sphere and I let the cube fall on the sphere. If I apply no rotation, the cube will stay balanced on the sphere and will not move. But what I want to do for my game is I want the sphere to rotate on itself so that the cube can't stand on it.

To do this, I uses a script that changes the rotation of the sphere on each frame :

 public int rotationAnglePerSecond = -30;
     
 // Update is called once per frame
 void Update () {
     transform.Rotate(0, 0, Time.deltaTime*rotationAnglePerSecond);
 }

With this script, you'll find out that the sphere turns slowly and pushes the cube next to it like it should. But my problem comes when I increase the rotation speed. Instead of making the cube fall more quickly, the cube just slips on the sphere and takes a long time before falling off (try with -180 instead of -30).

I don't understand why my rotating sphere affects less the cube when it's rotation speed is increased. They are both made of rubber, shouldn't they stick together instead of slipping?

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

Answer by RacingRapist · Jul 28, 2013 at 09:54 PM

I found the problem! I must use AddTorque instead of rotating my sphere. And my sphere must not be kinematic, otherwise the torque won't be calculated.

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
0

Answer by DaveA · Jul 28, 2013 at 05:45 PM

If I'm not mistaken, I haven't checked this, 'rubber' refers to the bounciness, not the stickiness. Try increasing the friction. You might also want to look into WheelCollider

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 RacingRapist · Jul 28, 2013 at 05:57 PM 0
Share

The rubber is sticky and not bouncy (friction=1 and bounciness=0). I also tried the WheelCollider, but the collisions are very very strange, like the wheel does not have a circular shape...

avatar image RacingRapist · Jul 28, 2013 at 06:36 PM 0
Share

Isn't there a simple explanation of why the cubes slips over the sphere? This isn't realistic physics...

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.

Follow this Question

Answers Answers and Comments

16 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

Related Questions

Cube starts shaking when placed on a giant sphere 1 Answer

Calculating Sphere vs. Plane Friction 1 Answer

planetary level of detail system (cubesphere) 0 Answers

Help: Shooting a cube 1 Answer

How To Improve my Rigid Body Sphere Character Controller 2 Answers


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