View Single Post
  #2  
Old 09-16-2010, 11:54 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You're getting that error in the first piece of code because the viewpoint is being placed in a location that causes a collision when the collision event occurs.

In the second piece of code the viewpoint is set to [0,1.82,0] unless the eyeheight has been changed. That command will always move the view above the origin.

If you want to move the viewpoint somewhere else use
Code:
viz.MainView.setPosition()
but make sure the position is not at ground level or colliding with another object.
Reply With Quote