I currently need help on a bug.I know the solution, but I don’t know how to do it.
My problem is :
Object clips into the wall or ground when it is being dragged and scaled.
Video :
Perspective Scaling
If you don’t understand what is going on; I am doing a perspective scaling effect in Roblox so the further you are away from an object the bigger the thing you are selecting is. And the closer, it gets smaller.
You can use spatial query (workspace:GetPartsInPart) to see if the part is clipping into anything.
If you just want to make it so that it doesn’t clip, try using a physics-based method of positioning the block (such as with BodyMovers or inverse kinematics)
Well the solution I figured out to this was moving the part away from the wall relative to the camera’s Z perspective. But I don’t really know how to do that yet…