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 Jan 10, 2014 at 09:04 AM by KiraSensei for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by KiraSensei · Jan 06, 2014 at 09:57 AM · roll a ball

labyrinth like game

Hello guys.

First of all, happy new year !

I'm trying to make a "labyrinth like" game for android mobile phones (first development for this kind of support). I'm using the "roll a ball" controller from the mobile assets.

I have some issues with the controller, it does not easily fall into holes (that are of course a little bigger than the ball).

Even if I reduce the size of the ball it does not fall easily...

  • I tried to play with gravity (-30 instead of -9.81, because I find that the ball does not fall like in reality (this is a good question, why ?), it is better but does not behave like in real life.

  • I tried to find the parameter handling the max speed of falling and I didn't find it.

Does someone has an idea ? Thanks in advance.

Comment
Add comment · Show 5
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 Panik.Studios · Jan 06, 2014 at 10:29 AM 0
Share

Did you check to make sure the collider is reducing in size when you scale the sphere down? Another thing you could do if all else fails you could make a trigger that adds added downward force... Not sure if those suggestions help, but good luck all the same!

avatar image sdgd · Jan 06, 2014 at 10:36 AM 0
Share

most importantly what's the mass of your ball?

avatar image KiraSensei · Jan 06, 2014 at 10:44 AM 0
Share

@Panik.Studios : I'll check the size of the collider if it fits the ball size, I'm not sure ... EDIT : the collider fits the ball size, there is no problem with that.

@sdgd : the mass is 1. But there is no reason the mass should impact the speed of the fall.

EDIT : I think the problem might be related to the unnatural physics : it drops slowly (and I don't want to add some gravity, -9.81 is the correct value). I don't understand what parameter I'm missing here... I tried to play with every parameter from the ball and the physics manager

avatar image KiraSensei · Jan 07, 2014 at 08:33 AM 0
Share

Ouch, it hurts ... :)

It was only a scale problem, thanks. Convert your comment as an answer so I can accept it.

avatar image OP_toss · Jan 08, 2014 at 06:01 PM 0
Share

Done. Glad I could help! Accept pls?

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by OP_toss · Jan 07, 2014 at 12:16 AM

The physics are scientific algorithms. They're fine. The problem is your scene scale. Your sphere is probably much bigger than it should be, thus it seems to move and drop slowly, just as a giant ball would. Try decreasing the size of the ball to be realistic, or just play with it til it moves how you want. Scale's your problem I think.

As far as falling in the hole, even in real labrinth games, the hole is quite a bit bigger than the ball, so you can either make a slight slope around it to help the player get it there, or increase the hole size to something easier. Not many other ways around that.

Hope this helps!

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

Follow this Question

Answers Answers and Comments

21 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

Related Questions

Roll a ball in one direction. Changing direction with rotation. 0 Answers

Roll-a-Ball project error trying to AddForce 2 Answers

I copied all the code in my script for the Roll a Ball tutorial to make the camera follow the ball, but the camera is still not following the ball? (It says no code errors) 2 Answers

ball keeps turning into an egg shape whenever i move it? 1 Answer

Hi guys, I need your opinion regarding physics simulations in unity. 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