Tire tracks on snow (white sand material)

Hey there!

I’m the Chief Executive Officer @ Go-Karting Xtreme, and we launched a snow update. (Basically instead a black concrete material we made it white sand, and used a particle emitter for snow.) Although, some players suggested to make tire tracks.

I do know how to script, but I honestly have no idea how I’d start there. Don’t get me wrong, I’m not asking for a script, but a way of thinking. :slight_smile: How would I accomplish that?

Thanks in advance!

Kind regards,
Jonas

3 Likes

Periodically raycast to find the ground beneath a tire and use Beams.

You can find the position of the tires and clone textures every second or so

Thanks! I’ll try to find out what raycasting is. :slight_smile:

Ray-casting essentially creating a ray that will allow you to determine intersections. Basically, you create a ‘laser’ and with this ‘laser’ you can tell when something blocks the laser. In your case, you can ray cast to determine the position and normal of the ground beneath a tire. You can then incorporate this data with a Beam instance to create the actual tire track textures.

2 Likes

Ah, thank you very much for your time and explanation! I’m not sure if I’ll be able to do that math, but I’m gonna give it a try. :slight_smile:

1 Like