Tank treads/suspension in Unity?

Hi.

Any suggestions about achieving this in a frugal way?

First reply, woo!

I’m working with that myself as well, and came across this russian article: Unity3d Tank Tutorial: Ходовая часть (Урок 1. Основы механики транспортного средства) / Habr
Trying to learn what I can from it, but as he says in the second part [just using Chrome’s translation function, it’s funky in places but can work], two methods he thought of doing the treads:

  1. Model the entire tread and… wheel thingies individually and make them function properly (which’d be very resource-intensive and complex to do)
    OR,
  2. “Simulate” the effect with a tread fastened to bones on a set of wheels, then have them animated with the wheel colliders in Unity. Much “simpler”, less resource-intensive and perfectly viable option in place of the other method, as both learning exercise and end product

Atleast, that’s what I thought. I think

The model it with physics can work quite well but is very heavy on CPU time I found and can break quite easily, I ended up using a spline system whoes knots were controlled by wheel colliders and then the system positioned my tread objects around the spline, I was lucky enough that the system I ended up using was added to an asset store product I already had. Video below.

1 Like