So, I’ve made a placement system where player can place a furniture and enter edit mode which then they can pick the furniture back up, works perfectly fine but the issue is that it goes through other objects in the world.
Issue:
I know there is stuff like :Getboundingbox but I don’t know how I would implement it or if there is any other better solution to detect if the placing object is going through something.
One solution that comes to mind is raycasting. You could get the hit position and determine if it’s within the distance (width/length) of the object. If it is, you take the hit position and add (object.Size / 2 + rayHitPosition). This is where you place the object.