VR Entity that combines other entities

I am working on a game for a project and I don’t know how to make it so that when a certain entity (or entities) collides with another entity, the entity clips to the other one, and then you could press a button, and they combine into something else.