Great question and I would like to carry you one step forward in your game if I can.
Generally this logic possibly failing when you grow up capsules. Component’s world location is always from the capsule’s center.
As general check function logic: depending on height is not the best approach however you can compare.
let us know if you can fix it or not

