How to check if a particular object is placed on the table?

Inside my character blueprint, I created a system of picking up and dropping objects by destroying and spawning actors.
I have different pickable objects placed around the level: BP_Apple, BP_Cup etc. - all meshes of those objects have Simulate Physics enabled.
There is a table in the middle of the room.
I want that if the player places BP_Cup on the table top, Print String will print the text.
Can anyone advise me how to solve something like this?

So two things here, you should place a invisible collision box on top of your table. You will arrange the size. When another object collided to it, BP_CUP or whatever, OnComponentBeginOverlap and CAST it to your desired class, then you can able to make some calculations and operations based on instigator class.

OnBeginOverlap should belong to your invisible collision box.

1 Like

You can do a simple line trace down from the object and see if it hits the table.

1 Like