Hi all,
I am trying to make dynamic tank tracks; ones that will deform and morph according to the terrain. I’ve searched the internet for quite a while…without any results. It’s been done with unity; I know that much, but I can’t figure out how. Someone mentioned using a raycast with the tracks, any ideas on how that would work? I’m fairly good with scripting but I’m just not sure where to start
If you create the tank tracks model with some bones attached, each bone for a wheel and the “belt” for the tank track following the bones (deforming to bones). Then you can do a raycast from each of those bones position to the ground, and adjust its vertical position based on the hit distance.
For making the tracks move, use a uv scroller (i think the wiki has one), that will scroll the material on the “belt”. If you model it correctly, you dont even have to make the individual wheels rotate, but you can do that too if you want.
Since you are good at scripting, wont provide any code for you, that way you build it all yourself and understand how it works