Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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
3
Question by nyonge · Jul 27, 2015 at 12:52 AM · errorphysicsdebugconsoleaabb-isvalid

"Invalid AABB" error whenever rigidbody moves

I'm getting an error that says "Invalid AABB b0" whenever the player in my game moves, which is a rigidbody. Since it's AABB I'm assuming it has something to do with collision, but the error throws whenever the player is moving, even if it's not hitting anything.

Selecting the error reveals nothing, it's not anywhere in my code but presumably something with Unity itself. Image below.

alt text

Latest Unity, using 3D physics. The game seems to run perfectly fine, but getting 100+ errors constantly while playtesting makes it hard to debug anything. The error fires every frame while the player's rigidbody is in motion.

Thanks!

screen-shot-2015-07-26-at-55442-pm.png (161.3 kB)
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 Nischo · Jul 27, 2015 at 01:36 AM 0
Share

Can you check if your colliders/bounding boxes are correct, for example empty bounding box or for any reason one with negative size. Also try to locate which game object exactly is causing that error. $$anonymous$$aybe you have an invalid scale on one object.

avatar image nyonge · Jul 27, 2015 at 06:09 AM 0
Share

I thiiiink this might've been an issue, but it was solved indirectly by simply changing how the player was instantiated (setting the position and rotation directly in the instantiate line, ins$$anonymous$$d of later). Thanks anyway!

avatar image ocimum · Oct 20, 2015 at 10:35 AM 0
Share

You just mentioned it was the wrong position, but what exactly threw the exception inside the player? In my case it was a LineRenderer component which threw the exception because of setting positions while no position had been available.

avatar image nyonge ocimum · Oct 20, 2015 at 10:37 AM 0
Share

Hate to second guess you, but are you sure it's the LineRenderer? Cuz AABB is a collision testing method (axis-aligned bounding box), and I'm not sure why the LineRenderer would check collision at all.

If you tried to set a position to something unavailable I'd expect it would give a NaN error or "invalid Vector3" or something.

7 Replies

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

Answer by nyonge · Jul 27, 2015 at 06:08 AM

Solved it. For anyone else with a similar problem, it was because of the way I was instantiating the player. I was using Instantaite(Resources.Load(gameObject etc etc)) to do it, then on the next couple lines setting the position and rotation independently. By moving the position and rotation set into the Instantiate function itself:

 playerObject = Instantiate(Resources.Load("Player", typeof(GameObject)), target.transform.position, target.transform.rotation) as GameObject;

That seems to have fixed it. Not sure why, but it works!

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
6

Answer by BassemAkl · Aug 06, 2015 at 06:55 AM

I had the same problem. I found that I accidentally set a GameObject's Scale that has a Rigidbody to 0,0,0. Just changing that to a non-zero value solved the problem.

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 Rodolfo-Rubens · Jan 20, 2016 at 05:43 PM 0
Share

That solved my problem too.

avatar image
1

Answer by Tkrain42 · Sep 03, 2015 at 03:47 AM

I ran into this problem, and thought it was something to do with the Rigidbody (since it was happening when two rigidbodies collided), but I discovered in my instance that it was because I'd passed the NavAgent's desiredspeed.magnitude to the animator, and when the rigidbodies collided, that created a speed of Zero... which I was using as a parameter for the animation speed of Walk... The end result was that the character that stopped due to collision suddenly had all its bones with positions and rotations of nAn...

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 Vectrex · Oct 25, 2015 at 12:36 PM

I had particles with world collisions AND particle stretching from velocity. So when I wasn't moving, the collisions AABB box would have been 0

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 superdupergc · Dec 10, 2015 at 03:05 AM

Happened to me with a linerenderer, i think the size was set to 0

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
  • 1
  • 2
  • ›

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

31 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

Related Questions

Editor Console window message no longer wraps... Help? Please? 1 Answer

Terrain Toolkit Error 2 Answers

I am now having an "internal compiler error" that sometimes appears as a warning and sometimes an error. It won't let me fix it either... 1 Answer

Google Admob error, Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode' 0 Answers

C# script failing silently? 0 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