Tank Track Treads

Heya there!

How can I have tank treads running around a certain amount of wheelcolliders?
I have Googled the whole internet without anything to help. I already used Blender with weight painting but that isn’t perfect

So now I wan’t to try having a object running around wheelcollider.

If you need more info, look at the image. It’s hard to explain.
Imgur

Thanks!

Hi @Jesse2431

Personally i would do it with a custom mesh.

You can get the outer points of each collider (angle x size x vector3.up), create a mesh between them. Then create a texture for the tracks that can loop, so that each of the track-mesh-triangles can use the same texture.

Then you can mimic the track movement/rotation by simply offsetting the UV coordinates.

You could either update the mesh information each frame, or (what i would recommend) is writing a custom texture shader in which you only have to increase the offset