It will probably take some 3-D modeling. Bringing it into AE, I will point you to Andrew Kramer's Element 3D plugin - http://www.videocopilot.net/
He has one demo that is doing a very similar effect -- http://www.videocopilot.net/tutorials/element_animation_engine/
Hm, not bad...it is quite similar...but how to do some modelling in 3d for similar purpose? I am interested more in 3d modeling (in this video for plug in these cubes are particles)...I hope that I posted in right discussion, since after effect is not modelling application.
Anyway, thank you for proposal, but this plug-in is not free.
It is not free, true. If you want to get more information about modelling applications and After Effects - I would check over at Creative Cow. They cover multiple products, including ours.