Search Issue Tracker

Fixed in 4.5.X

Votes

8

Found in

4.3.0f4

Issue ID

575758

Regression

No

OnTriggerStay2D is called not properly

Physics2D

-

To reproduce:
1. Open the attached project
2. Run the "scene1"
3. Move Jane object using arrow keys so that it collides with a "Trappe"object
4. Notice that messages logged from OnTriggerStay2D are logged randomly: sometimes it logs several messages and then stops, sometimes it doesn't log any messages.

Link to the forum thread on the same issue:
http://answers.unity3d.com/questions/575438/how-to-make-ontriggerenter2d-work.html#comment-578072

Comments (10)

  1. Trendiessvg

    Aug 10, 2021 10:34

    We are happy that you decided to visit our website today. Here at Trendiessvg, we design digital files that can be used for vinyl crafts, scrapbooking trendiessvg.com

  2. salihagenter

    Mar 20, 2021 05:19

    AgenterBooks is a simplified Cloud Accounting Software for your Business. For more visit
    agenterbooks.com

  3. cbanklee12

    Aug 18, 2020 16:47

    https://fstoppers.com/profile/naijmag

    https://www.avitop.com/cs/members/Cbanklee.aspx

    https://www.mozaty.com/listings/4654/pac-cbank

    https://community.mybb.com/user-136275.html

    https://hi-games.net/profile/21196

    https://www.infragistics.com/community/members/93ca2e4422d51f8efe3c7c60df39c2907a2c39f6

    https://findbestwebdevelopment.com/companies/naijmag

    https://businesslistingplus.com/business-listings/naijmag-5f2e44db8d866.html

    https://politichatter.com/Naijmag

    http://gourmetspice.com/author/naijmag/

    https://www.emoneyspace.com/naijmag

    https://jobs.hiregi.com/profiles/1930099-naijmag-media

    https://bittube.tv/profile/Naijmag/about

    https://all4webs.com/naijmag/home.htm?32288=11399

    https://www.thecollectivity.org/en/users/5742

    http://www.videoartworld.com/en/Artists/naijmag-media

    https://www.penname.me/@Naijmag

    https://www.linkemu.com/naijmag/

    https://www.komoot.com/user/1478159135482

    https://peatix.com/user/5292242/view
    https://scangator.com/listing/naijmag-36358

    https://profile.freepik.com/user/naijmag

    https://expo.io/@naijmag

    http://www.wysp.ws/naijmag/

    https://www.pozible.com/profile/naijmag

    http://www.alinscribe.com/users/naijmag

    https://www.affilorama.com/member/naijmag

    http://profileplugin.com/profile/naijmag/

    https://www.thingiverse.com/naijmag/designs

    https://app.vagrantup.com/Naijmag

    https://www.mygeoworld.com/company/naijmag

    https://www.renderosity.com/?uid=1014862

    https://sweek.com/profile/1533058/74088

    https://devdojo.com/naijmag

    https://www.yaarikut.com/user/naijmag

    https://www.zintro.com/profile/naijmag

    https://www.bunity.com/naijmag

    https://cryptoverze.com/members/naijmag/info/

    https://fnetchat.com/Naijmag

    https://snupps.com/Naijmag

    https://neverbroke.club/Naijmag

    https://www.multichain.com/qa/user/Naijmag

    https://sertified.org/members/naijmag/profile/

    https://bresdel.com/Naijmag

    https://alternativeto.net/user/naijmag/

    https://blog.sivanaspirit.com/author/cbanklee12/

    https://www.fictionpress.com/u/1145208/

    https://classifiedscachevalley.com/author/naijmag/

    https://socialcompare.com/en/member/naijmag-5j9voikz

    https://raddle.me/user/Naijmag

    https://toot.wales/@naijmag

    https://file.army/naijmag

    http://codepad.org/users/Naijmag

    https://www.infragistics.com/community/members/93ca2e4422d51f8efe3c7c60df39c2907a2c39f6

    https://www.webtalk.co/naijmag.media

    http://naijmag.idea.informer.com/

    https://micro.blog/naijmag

    https://www.teachertube.com/user/channel/naijmag

    https://m.evensi.com/naijmag-nigeria/390442150?iro=b2b

    https://community.waveapps.com/profile/Naijmag

    https://hi-games.net/profile/21196

    https://www.fablabs.io/users/naijmag

    https://bigpicture.net/users/naijmag-media

    https://www.magabook.com/Naijmag/activities

    http://cartnex.org/community/user/Naijmag

    https://www.trover.com/u/3184645445

    https://www.inprnt.com/profile/cbanklee/

    https://edex.adobe.com/member/vbf180b3f/

    https://flgclassifieds.cce.cornell.edu/author/cbanklee/

    https://themeforest.net/user/cbanklee

    http://www.divephotoguide.com/user/Naijmag

    https://studentshow.ccnsite.com/paccbank

    https://git.cryto.net/Naijmag

    https://wakelet.com/@naijmag

    https://band.us/band/80898792

    https://sessionize.com/Naijmag/

    https://founders-nation.com/UserDetails.aspx

    https://www.fixtrading.org/members/naijmag/

    https://londonsartistquarter.org/events/naijmag

    https://managementmania.com/en/personal/companies/naijmag

    https://forum.vivaldi.net/user/naijmag

    https://www.mygeoworld.com/profile/naijmag-media-ng

    https://mobile.thecreativefinder.com/naijmag/contact.php

    https://www.globallinker.com/mobile/network/company/271701#

    https://www.bitrated.com/Naijmag

    https://www.usa-co.com/company/naijmag_lago_vista_tx_cbanklee12gmailcom

    http://imclassified.com/user/profile/104990

    https://www.lifeofpix.com/photographers/naijmag/

    https://freeadstar.com/user/profile/20620

    http://everydaygamer.me/members/naijmag/

    http://advpr.net/Naijmag

    https://yaadlinks.com/listing/naijmag/

    https://www.shortstoryproject.com/storyf_writer/cbank-ford/

    https://www.unitedstateswebawards.com/directory/1643-naijmag-media

    https://completed.com/individual/30450474/okorie-chibuzor

    https://www.mobilegta.net/en/user/Cbanklee

    https://www.ethiovisit.com/myplace/Naijmag

    https://www.rootdown.us/Users/UserProfile.aspx?UserID=8210

    https://blacksnetwork.net/Naijmag

    https://www.hoomet.com/profile/Mainland

    https://www.progettovesuvio.it/profile/Mainland

    https://www.speakalley.com/users/cbank-ford

    https://jobs.calgeo.org/profiles/1927595-naijmag-media

    https://gotartwork.com/Profile/naijmag-media/59621/

    http://www.socialwider.com/mobile/profile-991527/

    https://www.artstation.com/cbanklee/profile/

    https://www.blogtalkradio.com/cbanklee12/

    http://moodeaudio.org/forum/member.php?action=profile&uid=3531/

    transtats.bts.gov/exit.asp?url=http://sportza.co.za/

    https://forum.robolink.com/user/cbanklee

    https://www.bhostin.com/forum/member.php?u=333

    http://www.dreevoo.com/profile.php?pid=126794

    https://www.trover.com/u/3184645445

    https://www.inprnt.com/profile/cbanklee/

    https://edex.adobe.com/member/vbf180b3f/

    https://flgclassifieds.cce.cornell.edu/author/cbanklee/

    https://themeforest.net/user/cbanklee

    http://www.divephotoguide.com/user/Naijmag

    https://studentshow.ccnsite.com/paccbank

    https://www.openlearning.com/u/paccbank-q3qgjy/

    https://myanimelist.net/profile/Cbanklee

    https://pubhtml5.com/homepage/biep

    https://www.theverge.com/users/cbank%20ford

    https://issuu.com/cbankford

    https://www.cossa.ru/profile/?ID=164282

    https://www.scoop.it/u/cbanklee

    https://yarabook.com/Cbanklee

    https://stocktwits.com/Cbanklee

    http://rosalind.info/users/Cbanklee/

    https://bizidex.com/en/naijmag-amusemententertainment-145760

    https://chttr.co/@id7493736951

    https://www.universalhunt.com/company/naijmag

    https://gitlab.com/cbanklee12

    https://hub.docker.com/u/cbanklee

    https://coub.com/pac-ford-cbank

    https://www.thinglink.com/user/1268477533930651651

    https://lookbook.nu/user/6764842-Pac-C

    https://codepen.io/pac-ford-cbank

    https://www.gtainside.com/user/Cbanklee

    https://weheartit.com/cbanklee12?usr=63136365

    https://mix.com/cbankford

    https://public.bookmax.net/users/cbanklee12gmailcom

    http://www.authorstream.com/Cbanklee/

    https://getsatisfaction.com/people/cbank_ford

    https://www.kickstarter.com/profile/cbank/about

    https://www.magcloud.com/user/cbanklee

    https://m.fanfiction.net/u/12838520/?a=b

    http://www.lawreferralconnect.com/profile/Naijmag

    http://defol.io/cbank-ford

    http://www.moonpod.com/board/profile.php?mode=viewprofile&u=5921

    http://themaghreb.informe.com/profile327753.html

    https://papaly.com/cbankford/4NeRv/Tutorial

    https://spinninrecords.com/profile/naijmag

    https://9jabooks.com/profile/10384

    https://www.digi.com/support/forum/user/Naijmag

    https://www.ranker.com/writer/cbanklee12

    http://naijmag.portfoliopen.com/about

    https://contactup.io/_u53536/

    https://startupmatcher.com/p/okoriechibuzor

    https://naijmag.netboard.me

    https://startacus.net/members/view/Naijmag

    http://hawkee.com/profile/732294/

    https://framagit.org/naijmag

    https://www.snupps.com/naijmag

    https://forum.unilang.org/memberlist.php?mode=viewprofile&u=65571

    https://www.starnow.com/naijmagmedia/?mode=pv

    https://asknature.org/members/naijmag/

    https://influence.co/naijmag

    https://www.findit.com/kkmtkgmmyuwmzfu

    https://www.horticulturaljobs.com/employers/562325-naijmag

    https://www.patlicata.com/employers/562332-naijmag

    https://www.patlicata.com/employers/562332-naijmag

    http://flgclassifieds.cce.cornell.edu/author/cbanklee/

    https://my.archdaily.com/us/@cbank-ford

    https://devel.trisquel.info/Naijmag

    https://www.lifeofpix.com/photographers/naijmag/

    https://www.logobids.com/users/naijmag

    http://codepad.org/users/Naijmag

    https://spandan.nmims.edu/author/naijmag/

    https://www.riptapparel.com/pages/member?naijmag

    https://www.giveffect.com/users/491405-naijmag/

    https://www.zazzle.com/mbr/238758483889110828

    https://www.komoot.com/user/1478159135482

    http://www.videoartworld.com/en/Artists/naijmag-media

    https://www.saasinvaders.com/@Cbanklee1234

    https://www.goeventz.com/Naijmag

    https://www.producthunt.com/@cbank_ford

    https://speakerdeck.com/cbanklee

    https://blebleto.me/Naijmag

    https://dev.inglobetechnologies.com/helpdesk/index.php?qa=user&qa_1=Naijmag

    http://nodebb.affect3d.com/user/naijmag

    https://radiovybe.com/Naijmag

    https://fileforum.betanews.com/profile/Naijmag

    https://nerdyshow.com/members/naijmag/profile/

    https://mtusers.net/oxwall/user/Naijmag

    https://www.bandlab.com/naijmag

    https://digitaldjpool.com/Naijmag/

    http://www.thefreeadforum.com/postclassifieds/user/profile/271114

    https://smallbizmarkets.com/listing/lagos-nigeria-naijmag/

    http://www.1800womsga.com/lagos/local-business-1/naijmag

    https://www.757pages.com/lagos/arts-entertainment/naijmag-media

    https://www.bulaclassifieds.com/lagos/arts-entertainment/naijmag

    http://www.411listings.com/lagos/sample-category/naijmag

    http://www.businessintelligencelist.com/lagos/knowledge-management/naijmag

    https://www.businessja.com/lagos/advertising-marketing/naijmag

    http://www.businessrater.com/biz/Naijmag-115161

    https://www.courthousesquare.com/naijmag.html

    https://www.eagleswing.org/lagos/music-and-artists/naijmag

    https://www.golocalezservices.com/lagos/accounting/naijmag

    http://find-chicago.com/company/naijmag

    http://www.healthylifeassist.com/lagos/health-services/naijmag

    https://www.hrbusinesslive.com/lagos/arts-entertainment/naijmag

    https://www.peeplocal.com/lagos/apparel-fashion-and-accessories/naijmag

    https://www.myinfoline.com/naijmag

    https://www.quponing.com/lagos/entertainment/naijmag

    https://www.smallbizpages.us/business-directory/128069/naijmag/

    http://www.statesbd.com/company/Naijmag_31367448/

    https://www.sharingmarketplace.com/lagos/arts-20-entertainment/media

    https://www.trueen.com/business/listing/naijmag/87428

    https://www.yellowpagesb.com/lagos/information-communication-technology-ict/naijmag

    https://www.yourlocaldirectory.online/lagos/entertainment/naijmag-media

    https://yobizniz.com/usa-business-detail-in-Iowa-IA-7-Lagos/Naijmag-Media-22600

    https://businesslistingplus.com/business-listings/naijmag-5f2e44db8d866.html

    https://biz.webblex.com/lagos/abbey/naijmag

    https://www.businessified.com/lagos/automotive/naijmag

    https://www.bestbusinesslocal.com/lagos/arts-entertainment/naijmag

    https://www.citybyapp.com/lagos/arts-entertainment/naijmag-media

    https://www.earthmom.org/lagos/advertising/naijmag

    *

    https://cyourad.com/listing/naijmag/

    https://www.fijisearch.com/lagos/arts-entertainment/naijmag-media

    https://www.gogapless.com/lagos/abuse-counselling/naijmag-media

    https://www.goodnewspress.us/lagos/arts-entertainment/naijmag

    http://www.looklocally.com/nigeria/lagos/arts-entertainment/naijmag-media

    https://www.whatsyourhours.com/nigeria/lagos/gifts-books-media/naijmag

    http://pingdirapp21.directoryup.com/lagos/accountants/naijmag

    http://moblog.net/profile/Cbanklee//

    http://forums.sentora.org/member.php?action=profile&uid=12758/

    https://forum.liquidfiles.com/members/cbanklee.3993/

    http://aircraftbargains.com/cs/members/cbanklee.aspx

    https://www.railsroot.com/profiles/3274-cbanklee12

    https://www.behance.net/paccbank/info

    https://busy.org/exit?url=https://naijmag.com

    https://www.phpbb.com/community/memberlist.php?mode=viewprofile&u=1996221

    https://hubpages.com/@pacfordcbank

    https://www.hometalk.com/member/48228414/pacfordcbank

    https://studiopress.community/users/cbanklee/

    https://moodle.org/user/profile.php?id=2871979

    http://www.droidxforums.com/forum/members/150428.html

    https://www.ibm.com/developerworks/community/profiles/html/profileView.do?key=5b9b945a-99c3-4081-b1b3-10496008d733

    https://www.warriorforum.com/members/pac-ford-cbank.html

    https://www.theverge.com/users/cbank%20ford?return_to=https://www.theverge.com/

    https://www.instructables.com/member/cbanklee12/

    https://www.pexels.com/@pac-ford-1912905?nc#_=_

    https://www.indiegogo.com/individuals/22427472

    https://www.wattpad.com/user/cbanklee11

    https://www.railsroot.com/profiles/3274-cbanklee12

    https://www.phpbb.com/community/memberlist.php?mode=viewprofile&u=1996221

    https://forum.liquidfiles.com/members/cbanklee.3993/

    http://bbs.phoenixstudio.org/en/member.php?action=profile&uid=62392/

    http://forums.sentora.org/member.php?action=profile&uid=12758/

  4. scabnog

    Dec 19, 2014 20:52

    Additional note - I am running Unity 4.5.5f1 so if others have confirmed the fix, then it may simply be an additional problem. I'll open a new issue.

  5. scabnog

    Dec 19, 2014 20:47

    I have a similar problem - OnTriggerStay2D doesn't get called reliably, making the function unusable. It does not seem related to the collider type (have tried circle, box etc.). The Rigidbody2D is kinematic. This seems to be happening for newly Instantiated objects that are instantiated inside a trigger volume (BoxCollider2D). Perhaps it's related to detecting the trigger entry because it will either work every frame after instantiation or not at all.

  6. scabnog

    Dec 19, 2014 20:47

    I have a similar problem - OnTriggerStay2D doesn't get called reliably, making the function unusable. It does not seem related to the collider type (have tried circle, box etc.). The Rigidbody2D is kinematic. This seems to be happening for newly Instantiated objects that are instantiated inside a trigger volume (BoxCollider2D). Perhaps it's related to detecting the trigger entry because it will either work every frame after instantiation or not at all.

  7. Xevoius

    Apr 30, 2014 13:54

    I just bought pro a month ago and have been building my 2D game thinking fixes like this are going to be rolled out ASAP since they are game breakers for the 2D system. Not sure if I need to just port all the physics stuff to the reliable 3D system or wait for the fixes to come down the pipe.

    Some sort of timeline would be much appreciated.

  8. diegzumillo

    Dec 08, 2013 19:20

    I'm putting all my votes on this bug, but the ontriggerenter2d is also problematic. Basically, ontriggerenter is being called every frame and this is being called erratically (usually never).
    It is the first release of the physics 2d, after all :) These are 'shirley' going to be fixed in the upcoming updates.

  9. noob101

    Nov 29, 2013 10:49

    if this is duplicate , can you (Unity) move the votes to the other bug ?!! also can you reference what is it duplicated with ?

  10. mousse

    Nov 24, 2013 02:18

    the main issue is that kinematic rigidbody2d does not trigger a OnTriggerEnter2D, like it says in the linked forum thread

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.