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 RayJr · Oct 19, 2014 at 02:42 PM · 2dspritecollider2d

2D: Why are my Circle Colliders falling through Edge Colliders ??

Hi, I have a player sprite with a circle collider 2d at his feet. I have him standing on an edge collider 2d. The edge collider is part of a large moving tank that rolls around climbing over rocks and other colliders.

When the tank gets bumped around, the sprite sometimes falls through the edge collider and ends up on the ground next to the tank. there are no holes in the edge collider, its mostly a long flat piece. He isn't standing anywhere near the end of the collider, he is definitely falling straight through.

Is there a setting or something that says never go through, no matter how hard it hits?

Thanks!

Comment
Add comment · Show 8
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 MrSoad · Oct 19, 2014 at 08:29 PM 0
Share

How thick(vertically) is your edge collider, if it is too thin then objects can fall through easily.

avatar image RayJr · Oct 19, 2014 at 09:01 PM 0
Share

They're one pixel thin. I didn't know I could make them thicker!

avatar image MrSoad · Oct 20, 2014 at 12:36 AM 1
Share

Hi again, I meant like this as you are looking directly at it : alt text

If your current collider is like in pic A then you may get fall through. If you make it like pic B it should with a bit of luck not fall through anymore. If your tank collider is already like in pic B then this is not the problem. I'm not an expert at 2D by any means, but in 3D this principle is sometimes true.

example.png (1.6 kB)
avatar image Pyrian · Oct 20, 2014 at 03:53 AM 3
Share

You cannot make an edge collider wider, lol. You could make a box (or polygon) collider; a particularly wide collider can really cut down on "push through" events, although they don't perform as well as edge colliders. Also, you can try setting your collision detection to Continuous.

avatar image MrSoad · Oct 20, 2014 at 11:17 AM 1
Share

Thanks for the info about Edge colliders Pyrian, yes I was thinking in terms of box colliders. Voted you up as you also remembered to say about setting to continuous:)

Show more comments

1 Reply

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

Answer by RayJr · Oct 20, 2014 at 02:43 PM

Answered in Comments. Thanks Pyrian and MrSoad

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

29 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

Related Questions

How to update EdgeCollider2D with sprite animation? 1 Answer

2D Level Design (programmatically or not) 1 Answer

Platform Effector 2D One Way, not working as expected 0 Answers

Animataion of a Sprite v2 1 Answer

sprite vs texture 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