Make sure collision is set to ‘Block’ and not ‘Overlap’ or ‘Ignore’ between the two object’s collision types.