Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 SpacePilot1000 · Sep 09, 2015 at 05:56 PM · physics2dboxcollider2d

Box collider 2D failing when far from location 0,0,0

I've been having a problem where a box collider 2D doesn't generate a collision shape. The message that gets displayed in the inspector window (while playing in editor) is:

"The collider did not create any collision shapes as they all failed verification. This could be because they were deemed too small or the vertices were too close. Vertices can also become close under certain rotations or very small scaling."

I believe this is actually related to the game object's location in the world. The object is far from the world origin of 0,0,0 and I'm wondering if that's the cause? For example, when I place the object at location 3731,-3621,0 I get the problem. However if I move the object 1 unit over to location 3732,-3621,0 I don't get the problem.

I'm trying to understand the behavior here, but I'm not sure what's causing this.

Some additional info:

  • The game is a 2D game using only Unity 5's built in 2D support

  • The game object in question has a sprite renderer and a box collider 2D

  • The game object's rotation is 0,0,0 and the scale is 1,1,1

  • The box collider's size is 1x1 (with no offset)

Does anyone have a guess as to what's going on here?

Thanks for any help!

Shawn

Comment
Add comment · Show 4
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 Taky · May 13, 2016 at 12:58 PM 0
Share

@SpacePilot1000 did you find a solution? I'm having the EXACT same problem:

  • 2D, GameObject far from origin (e.g., 1500, -1500)

  • Box Collider 2D breaks down when I move it 1 unity around

  • Box Collider 2D is fine when it is near origin

  • GameObject only contains sprite renderer, Box Collider 2D

  • no parent to GameObject

avatar image SpacePilot1000 · May 28, 2016 at 07:23 PM 0
Share

@Taky - I haven't checked back on this issue in a while, so I'm not sure if it's fixed yet.

avatar image SpacePilot1000 · May 28, 2016 at 07:25 PM 0
Share

I just checked and the original bug I filed is still open and unresolved.

avatar image Taky · Jun 19, 2016 at 02:49 PM 0
Share

An additional point - I don't have this problem what-so-ever on a much older slower machine (this machine is 32 OS vs current 64 OS machine that currently has the problem).

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by MelvMay · Sep 10, 2015 at 07:05 AM

This is extremely odd behaviour. The warning only appears when the box-shape being presented to Box2D is too small due to its inherent size or via down-scaling. Its position has no relation to it.

Presumably the GameObject is a root object i.e. has no parent that has down-scaling/rotation applied?

If not, can you please submit a bug report for this and post the case number?

Comment
Add comment · Show 1 · 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 Mareck · Sep 18, 2016 at 01:43 PM 0
Share

Is there a solution for this? I am having the same problem. GameObject has a BoxCollider2D and works fine when near (0,0,0). At (2000, -19055) it gives the "Collider did not create warning".

I am not scaling nor rotating the gameObject and the collider size is Vector2(1,1) and offset Vector2(0,0). Transform scale of the entire gameObject is Vector3.one.

avatar image
0

Answer by SpacePilot1000 · Jun 19, 2016 at 04:39 PM

Hmm that's interesting. I wish I had the source code so I could fix this, haha.

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

30 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

Related Questions

What's a good way at keeping a ball bounce around inside the scene? 1 Answer

Physics2D.OverlapArea inaccurate? 2 Answers

2D Box Colliders Overlapping On Collision 4 Answers

Why does poligon collider 2d restricts movement of box collider? 0 Answers

Unrealistic gap between two objects. 4 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