CNA Samples

Camera Shake

Ported from Microsoft's XNA 4.0 Camera Shake sample.

Source for this sample on GitHub ↗

A textured tank above a blue-and-black checkerboard ground, with shake controls at the top left. Play ▸

Opens in a new tab. Press A or tap for a short shake; press X or double tap for a long shake.

About this sample

A textured tank and checkerboard ground show how camera offsets can shake a 3D scene. The shake fades nonlinearly and returns the view to its original position.

Controls

ActionKeyboardTouchGamepad
Short shakeATapA
Long shakeXDouble tapX
ExitEscape—Back