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
2
Question by johnBenge · Jan 23, 2011 at 08:35 AM · collisionphysics

Concave rotation Collision problem

Hi,

I'm pretty new to Unity, and I'm having a pretty significant problem with collision. I need to have objects collide with the edges of rotating objects. I know that's hard to visualize, so here's a video of the setup which shows the issue I'm having:

video example

It looks like the issues happen whenever the rotating objects collide with the spheres at a certain angle, such as when the spheres hit the extruded portion of the outer circle. I'm semi-proficient at scripting, but this one's a bit over my head. Any thoughts on the best way to approach this?

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

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Statement · Jan 23, 2011 at 11:50 AM

You probably need to construct convex collider components for this to work well in practice. I my personal experience, non-convex mesh colliders are horrible when used with anything moving due to tunneling artifacts. You can build any concave model from convex composites.

From looking at your video, the wheel should be constructed using 24 convex colliders (one for each segment that can be made convex) and the cross thing in the middle should be constructed using 6 or so convex colliders (4 for the ends, and 2 shafts).

There might be other ways around this. Is your character controller physics driven?

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 johnBenge · Jan 27, 2011 at 11:32 PM

Thanks for your response. I re-constructed the collision setup using box colliders, and it does work a lot better. There are still issues that happen when parts of the circle thing rotate into the bombs, sometimes they get bumped above the circle, but other times they fall through. The character is not dynamically controlled at the moment, though I plan to incorporate that as soon as I'm satisfied with the collision for other objects.

Here's the project, if anyone can come up with a working solution, I would greatly appreciate it.

Circle Platformer

Sorry about all the adds on the download site, just go straight to the bottom and click the actual link, not any of the crap that says "download now" or whatever

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 UGTools · Oct 30, 2012 at 04:46 PM

You should be able to use a non-convex mesh collider for the circles as long as the elements that interact with them use primitive colliders (spheres, boxes, capsules) or a convex mesh collider. That way the collider will be the mesh itself and collisions should be precise.

If that is not the case then your circle needs to be convex because unity's physics engine doesn't support non-convex mesh to mesh collisions. One solution to that would be to approximate the circle with box colliders, but collisions would not be so precise and it takes a lot of work to set up.

We've developed a component for Unity3D that creates automatically multiple convex colliders for a given object. It could be useful in your case for the circle, which seems to be the most complicated part, in case the previous solutions don't work for you.

Here is a video to see how it works: YouTube

It's available at the Asset Store: link

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

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

1 Person is following this question.

avatar image

Related Questions

Modifying height directly on a Rigidbody Object without gravity 1 Answer

If trigger hit, spawn it 1 Answer

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Question about collision and trigger 2 Answers

Two Basic Physic Questions (Gravity and Jumping) 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