3d view with collision detection and accelerometer