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 luniac · Jul 25, 2014 at 08:19 PM · animationcollidertriggerbug

4.5.2 animation BUG: 2D collider colliding with 2d trigger!!!

I've been developing my game for months now and only after i updated to the new unity version do i have this bug.

Basically I'm shooting a 2d bullet sprite with a 2D collider on it into a 2d collider sprite zombie.

The bullet collides as its supposed to and a sprite animation plays within which i set the zombie sprite collider isTrigger to TRUE.

BUT HERES THE BUG!!! If i shoot another 2d collider bullet sprite into the zombie sprite which is now a trigger collider, A COLLISION STILL OCCURS!!! AND KEEPS OCCURRING NO MATTER HOW MANY TIMES I SHOOT AT THE TRIGGER!

I've spent hours trying to figure WHY THIS IS HAPPENING and my only conclusion is that it's a BUG. This did not happen in any previous version...

I did a bunch of testing and narrowed it down to the animation window, when my zombie sprite dies it plays an animation which changes the collider to TRIGGER at a certain keyframe.

I placed a debug log function returning trigger status in the zombie script and it showed that the collider was TRIGGER(and the inspector as well), the bullet STILL COLLIDED WITH THE ZOMBIE SPRITE!!!

I even tried creating a new animation clip that only changed the collider to trigger and nothing else, so when i first shot the zombie it was set to trigger, but the second shot STILL HIT IT!!!

I'm going crazy over here, i just dont see how this is anything other than a bug...

and to add fuel to the BUG fire, i tried changing the collider to trigger by CODE and it WORKED! then i tried the animation method again and once more a collision occured...

Can anyone confirm? thanks.

UPDATE:

OK I loaded an older version of the game from 2 months ago when I knew 100% the bug didnt occur, and LO AND BEHOLD THE COLLISION STILL HAPPENS!

I'm now a 100% certain that this is a bug in the new version related to setting the rigidbody trigger in the animation window.

I don't want to send my whole project as a bug report, is there an easier way to let Unity know?

Can this possibly have to do with the extra settings in the physics2D options? maybe im not understanding something.

Comment
Add comment · Show 3
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 luniac · Jul 27, 2014 at 06:40 PM 0
Share

nobody got any answers?

avatar image Hazlo · Jul 27, 2014 at 10:38 PM 0
Share

$$anonymous$$an, I'd swear I read days ago something about a change in colliders vs triggers in 2D on the latest 4.5.x versions, but I can't find what nor where :( Anyway, have you tried the latest beta in http://forum.unity3d.com/threads/unity-patch-releases.246198/ ? See if there's some change in there, but I tell you I remember some release note saying something that could be related to what you are experiencing...

avatar image luniac · Jul 31, 2014 at 04:49 PM 0
Share

thanks ill try it.

0 Replies

· Add your reply
  • Sort: 

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

24 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

Related Questions

Possible to stop collider from "popping" through plane when re-centering? 2 Answers

Problem with Reverse Animation 1 Answer

Trigger via Collider 1 Answer

How do you set up a trigger animation without going through the collider? 0 Answers

Trigger transition to another animation. 2 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