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 un_ity · Jan 06, 2015 at 12:43 PM · unity 4.6stuckbox collider2d collision2d physics

Model stuck on collider

Hi, I have a problem with model got stuck on collider.

I'm making a game with 3D model but using 2D Physics.

The model got a rigidbody 2D and a box collider. The model will be moving to the right and I have the grounds to be generated infinitely. The problem is, in some place the model got stuck between the intersection on the current ground and next ground.

I have tried resizing the colliders, but I still get the problem..

Here's a screenshot(it got stuck between A and B) alt text

Comment
Add comment · Show 2
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 taxvi · Jan 06, 2015 at 01:10 PM 0
Share

the cause may be the B collider be tiny bit taller then the A collider causing the fish to hit the corner, try modifying the b collider.

avatar image un_ity · Jan 07, 2015 at 04:27 AM 0
Share

@taxvi well the colliders are supposed to be identical.. I've found the solution below. Thanks for the reply :)

1 Reply

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

Answer by GameGuy · Jan 06, 2015 at 01:05 PM

It stucks because of the box collider, you should use circle colliders in the lower corners of your box collider and they should overlap the sharp corners on your dolphin´s collider.

Comment
Add comment · Show 2 · 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 HarshadK · Jan 06, 2015 at 01:12 PM 1
Share

Here's a nice article (Ghost vertices) explaining the problem with the solution somewhat similar to @GameGuy has specified. It is for box2d but the principle remains the same.

avatar image un_ity · Jan 07, 2015 at 04:25 AM 0
Share

@GameGuy Thanks a lot, it's working :)

@Harshad$$anonymous$$ wow I didn't know about that, now I know why it happens, thanks :)

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Detect side of box collider 0 Answers

My character gets stuck between 2 colliders 0 Answers

How do I make my player jump? Unity 2019,How do I make my player jump? 1 Answer

OnCollisionEnter2D not triggered 3 Answers

Lag Caused by Overlapping 2D Colliders 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