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 FlamingVorpalCow · Oct 23, 2014 at 04:14 PM · rotationballrotations

Ball Get Stuck on Rotating Platform

Hi There! more n00b Questions here... I'm doing a simple Roll-A-Ball Game for my daughter, but instead of applying force to the ball, I rotate the platfrom, making the ball move because of gravity. The set up at the moment is a flattened Cube that acts as floor, and a Ball (The Player)...

My main issue, is when i start the game, if i don't move the floor quickly, when the ball collides, it get's stuck and the floor rotates and overlaps the player, ignoring colliders...

As you can see in the attached images, the ball has a rigid body and should act under the laws of gravity, but on the example image, the floor is rotated but the ball doesn't fall...

Any Ideas on what may be causing this? Thanks!!!

[1]: /storage/temp/34173-example1.png

player.png (80.9 kB)
example1.png (3.2 kB)
Comment
Add comment · Show 3
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 MrSoad · Oct 23, 2014 at 04:17 PM 0
Share

What are your rigidbody settings for the ball?

avatar image FlamingVorpalCow · Oct 23, 2014 at 11:15 PM 0
Share

The ball has the basic config: 1 mass, 0 drag, uses gravity, not kinematic nor constrained in any way... going to try robertu's tips and chexk if that fixes the issue...

avatar image MrSoad · Oct 24, 2014 at 03:03 PM 0
Share

No problem, I noticed you have given this info in your screen shot after :S If you are still having any problems let us know :)

1 Reply

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

Answer by robertbu · Oct 23, 2014 at 04:23 PM

One possibility is that it is sleeping.

http://docs.unity3d.com/Manual/RigidbodiesOverview.html

If so, you can put this in a script in FixedUpdate() on the ball:

 if (rigidbody.IsSleeping() ) {
     rigidbody.WakeUp();
 }

While not a complete solution, consider also setting rigidbody.sleepVelocity and rigidbody.sleepAngularVelocity to 0.0.

If you have not already done so, consider assigning a physic material to the ball and surface colliders. Not a specific fix for your problem, but it might make the surfaces behave more like you envision.

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 FlamingVorpalCow · Oct 24, 2014 at 03:34 PM 0
Share

Thanks!!! Your Solution fixed the issue... the Ball was in fact sleeping... I forgot to add the script, so it didn't show the sleeping debug.log so i thought it wasn't sleeping... (the materials didn't help though)...

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Positions to rotations of a regular GO 2 Answers

How to use quaternions to apply an offset to a rotation to calibrate a controller 1 Answer

Programming Accurate Clock Hands 1 Answer

How do i rotate a 2D ball while moving 0 Answers

z axis doesn't follow the rotation of its object 3 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