The collision detection works as expected with a simple vizcave example. Try adding collision detection to the script on the following page and just move the viewpoint with arrow keys:
http://docs.worldviz.com/vizard/#vizcave_powerwall.htm
Perhaps other code in your script is interfering with the viewpoint movement or collision code. Can you post a simple example that reproduces the issue?