To make an object a ghost object, select an object in a scene in the Edit mode, go to the Physics tab in the Inspector panel, and turn the Physics on. Change the type of the Rigidbody to Ghost. In the example below, you can see the Physics tab with the settings for a ghost box object.