I basically want box2 to slide towards box1’s position without the box2.position.y changing one tiny bit along the way. But I am getting a difference of 0.01353556 in the y-axis. And if I use different sized colliders, this difference wil get bigger, the more difference in size of the two colliders.
Can someone help me please, I think my brain just died.
How’s that work? You can add an offset to the y value if needed. You can also add an !isJumping verifyer/bool to check before manually setting the position to half of the renderer’s bound.extents.y.