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 /
This question was closed Feb 20, 2013 at 11:09 PM by Geo.Ego for the following reason:

It doesn't seem like anyone has an idea.

avatar image
0
Question by Geo.Ego · Dec 21, 2012 at 06:47 PM · physicsrigidbodyballrolling

Ball rolling on platform

I am working on a 2.5D project where I need to move a ball upwards on a platform by rotating the platform on the Z-axis and moving the platform on the Y-axis. So basically, the platform rotates left and right and moves up and down. The ball should roll nicely along the platform.

The ball is just a sphere with a rigidbody attached. When I move the platform, I want the ball to roll on it rapidly, pretty much like a ball bearing on a wooden platform.

I've gotten a pretty good effect by increasing the mass of the ball greatly (1000 right now) and adding a large amount of constant downforce (-250000 when the platform is moving up, and -30000 when it's moving down). The problem I have right now is that when I move the platform downwards, the ball bounces very sporadically. As I increase the downforce, the bouncing interval decreases, but the amount seems about the same; as I decrease the downforce, the interval increases, and makes the ball bounce lightly across the platform.

What I'm after is a way to have the ball hug the platform and respond rapidly to changes in the angle of the platform. I've tried wheel colliders with pretty much the same effect, but I'm open to anything at this point.

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 ThePunisher · Dec 21, 2012 at 09:47 PM 0
Share

I don't know that increasing the mass of the object like that and applying that force is the solution you want.

How large is the ball and the platform it rolls on, in Unity units?

avatar image Geo.Ego · Dec 21, 2012 at 09:55 PM 0
Share

The ball is (1, 1, 1). The platform mesh is (21, 0.5, 1). The box collider on the platform is (1, 4, 5.48). I'm open to any suggestions at this point; a completely different approach is fine if it works. Thanks!

avatar image Geo.Ego · Dec 27, 2012 at 04:40 PM 0
Share

I've also tried adding torque to the rigidbody in the opposite direction that the platform moves. This works fairly well, but I'm still fudging the physics rather than working with them to create a more realistic model, which is what I'm really after.

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

11 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

Related Questions

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

moving and jumping ball using physics 2 Answers

How to make a ball that can roll? 2 Answers

Rolling mable... rigid body? 1 Answer

How could I make a bouncy object move mostly along the Z axis? 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