Hey,
My situation is like that: I got a player who can pickup cubes and other objects, so they float where he’s look at. Basically I’m doing a raycast through the object on a wall or the ground to place the object there. Also I’m able to rotate the object and scale it. Now I got one little thing which I just cannot solve. Basically, the point where the raycast hits the ground is the point where the object gets positioned. But obviously it gets placed halfway into the ground. I want to place it ON the ground or ON the wall tho… I know how to place it on the ground, but if I rotate the object there is a corner which is inside the ground. Is there any way to reliably place a object, even when it’s rotated on the ground or on the floor? Just like in that game:
Would be happy, if somebody could help me