Can I trap a character inside of a trigger box?

Does anyone have any idea if this is possible in some way? Or how I should go adding collision to a sphere of some sort to where I can’t get out of it??
Like would it be possible? Make giant sphere mesh, make it translucent and then ONLY be inside of it??