Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
This question was closed Jan 18, 2016 at 11:28 AM by inderjeet172 for the following reason:

Question is off-topic or not relevant

avatar image
0
Question by inderjeet172 · Jan 13, 2016 at 04:07 PM · c#collisionphysicscollidercollision detection

How To how ??

I want to move a dice within a cup

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

  • Sort: 
avatar image
0
Best Answer

Answer by inderjeet172 · Jan 13, 2016 at 07:08 PM

I want to Move my Dice in polysurface1.I apply rigidbodies property but its not worlking


2.jpg (155.4 kB)
3.jpg (148.2 kB)
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

Answer by bloeys · Jan 13, 2016 at 06:36 PM

If you want to use physics, a very basic way would be to make both objects rigidbodies, make the dice very bouncy and then simply move the cup around, that way the dice should bounce around inside the cup.

I haven't tested this but it should work

Comment
Add comment · Show 7 · 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 inderjeet172 · Jan 13, 2016 at 07:13 PM 0
Share

Thanx 4 reply.I already apply the rigidbodies property but its not working

I want to move my dice in b/w polysurface1 and light blue base of machine

if i apply box collider to both of them then dice will not move

avatar image bloeys inderjeet172 · Jan 13, 2016 at 08:14 PM 0
Share

Okay, first adjust the mass of your dice, make it something like 1, and reduce its drag and angular drag, right now its too high.

your shaker must have a proper collider, for now you can give it a mesh collider, a box collider won't work because your dice will be inside it. Also make sure the base of the shaker also has a collider.

What you want to do next is create a physics material, and change its properties to make it bouncy, then apply this physics material to the box collider on your dice. Now what you should notice is that the dice will bounce once it hits the shaker. To increase the effect you can also apply this same bouncy material to the mesh collider of the shaker.

Hope this helps, feel free to ask anything ;)

avatar image inderjeet172 bloeys · Jan 15, 2016 at 09:06 AM 0
Share

cheeck out video it doesnt work

https://www.youtube.com/watch?v=Qv633NPVdL8

Show more comments
Show more comments

Follow this Question

Answers Answers and Comments

75 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 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 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 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

Ignore collision based on position 1 Answer

How to move an object on a terrain that will always stay on top of the terrain? 2 Answers

OnCollisonEnter not beeing called, what can I do 0 Answers

How to make an object that collides with just the player? 1 Answer

Collision or Triggers both not working. 3D. 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