CNA Samples

Tank on a Heightmap

Ported from Microsoft's XNA 4.0 Tank on a Heightmap sample.

Source for this sample on GitHub ↗

Green tank on the rocky, sloping terrain in the running game. Play ▸

Opens in a new tab. Use the keyboard to drive across the terrain.

About this sample

The original content processor turns a heightmap into textured terrain and stores its heights and normals with the model. Drive the tank across it to see the body align to each slope, the four wheels roll and the chase camera follow without dropping below the ground.

Controls

ActionKeyboardGamepad
Drive forward / backwardW / S or Up / DownLeft stick or D-pad Up / Down
TurnA / D or Left / RightLeft stick or D-pad Left / Right
ExitEscapeBack