Physics bodies store their current collision state (in blocked
, touching
) but not which bodies they’re colliding with.
You would have to store that state yourself (in a variable, property, or player.data
) in the collider/overlap callback, read it in update(), then reset it at the end of update().