Roblox Raycast Tutorial: How To Make Floating Pickups Over Uneven Terrain

Published: 17 December 2020
on channel: Marcel Gagné
848
18

I wanted to place coins, health pickups, or some other form of token, on uneven, randomly generated surface terrain for a game I was working on in Roblox Studio. Now, if you are using a flat surface, like the default baseplate, the health tokens would float nicely at 4 studs above the surface (or 2 or 6), but with hills, lakes, valleys, etc, they could be inside a mountain or floating 30 feet in the air. How can you, as a game designer, determine the actual position above ground when the ground isn’t flat? The answer is raycasting. In this video, I'll show you how that works for generating those pickups.


Watch video Roblox Raycast Tutorial: How To Make Floating Pickups Over Uneven Terrain online, duration hours minute second in high quality that is uploaded to the channel Marcel Gagné 17 December 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 848 times and liked it 18 visitors.