When given a wall and a window, I’m trying to find out how I can place the window in the middle of the wall according to the wall’s cframe while using mouse.Hit. The issue I’m running into is that the window is always being placed directly in front of the wall, and when attempting to make adjustments, the window gets placed on the other side of the wall instead, so I can never seem to place it directly in the middle as I want.
Use PivotTo() when moving the model (it ignores any potential collisions).
With collisions turned off the window seems to still hover just in front of the wall no matter what I do. I’ve included a video explaining what I mean.
I’ll also note that it works when the wall’s orientation is 0. It’s just when the wall has a non zero orientation that it doesn’t work