It is possible to create the brownian path in 3 Dimensions.
However, you need to process 3D collision.
Please check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=120.0]Collision 2D[/url]