Raycast Prop Placement Help

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?

1 Like

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

1 Like

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

1 Like

You just need to move the prop up by half it’s height to make the bottom line up with the ground.

1 Like

add half the y axis of the baseplate with half the y axis of the gun.

1 Like