Hi! I’m making a spawn gun using raycasts, where players can spawn any prop they want at the end of the raycast. If i set the prop’s position to the raycast end point, the prop will appear stuck in the ground. How can i fix this?
have you made sure that the raycast is facing the right direction?
i haven’t made the gun yet, but with my experience with raycasts, i expect my problem to occur
my bad i didnt know you were asking a question i thought you were having an issue because you said “how can i fix this?” as long as the raycast is done properly with appropriate params there shouldnt be any issues honestly
You just need to move the prop up by half it’s height to make the bottom line up with the ground.
add half the y axis of the baseplate with half the y axis of the gun.