#Algo 3602 Ah thanks I ve always just
1 messages · Page 1 of 1 (latest)
@vital zephyr you wouldn't happen to know how to do the same with OnCollisionExit(Collision collision)? It seems that collision.contactCount is always 0 for it, meaning that when i find a collision in OnCollisionEnter i can't properly remove it in OnCollisionExit 🫤
hmmm i dont remember how the behaviour is for OnCollisionExit, but if it really doesnt keep the contacts when it exits then you could cache them, so just store a "last contact" field in the script and every time you enter a collision, store the contact
although that could behave weirdly if youre colliding with different objects in the same frame maybe
but something along those lines could work