Add a function to verify if a body is compatible with a frame.