Tank controller tracks

Hello,

I am new to unity3d and need some advice on how to create a realistic tank.

Currently I am stuck on how to achieve it, that the tank tracks follow the terrain.
I did export a 3d model from blender as described in this manual from the cryengine ( I guess the technique is the same across all engines)

http://freesdk.crydev.net/display/SDKDOC3/Tank+Setup

Basically I did create 1 armature for each wheel and assigned the wheel to it. I can move the armatures manually in the editor and the mesh deforms as it should.

How shall I proceed implementing realistic tank tracks from here on?

A few options came to my mind:

  1. Use raycasts to determine the wheel position and update the armatures with a script
  2. Assign rigid bodies and wheelcolliders to the armatures ( tried that already without much sucess)
  3. ?

I really appreciate any help you can provide me at this point.

Thank you in advance

Eduard

There are some assets in the Asset Store that might help, Unity Asset Store - The Best Assets for Game Making has a full tank system, or there is a system in MegaShapes and MegaFiers that does tank tracks

Hi,

thanks for the hint, I will check it out.

I did some further research yesterday and found this tutorial about cars:
http://www.gotow.net/andrew/wordpress/?page_id=78

In step 6 they elaborate how to create wheels with suspension and rotation, I think this should work perfektly well with my current setup.
I will give some feedback as soon as I get it to work properly.