Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

thank you. I didnt notice until now that the gun sometimes  doesnt  detect a hit when in  late update but it works in fixed update to detect every hit. Do you know why fixed update doesnt miss any hits? I would think that fixed update would be worse for this since its called less than the updates, but no.

Well It does not get called less, it just gets called at constant intervals. Every Physics step is calculated in fixedupdate. Since you try to do a physics call it should go in fixedupdate.

In normal / late update the call interval can vary depending on the framerate thus a collider may not be correctly moved according to phyiscs yet.