#1
|
|||
|
|||
MainView.setPosition ignored when collisions are enabled
Hi, I am trying to set the starting position for the MainView, but it doesn't seem to affect anything. Here is a simple example:
viz.go() viz.collision(viz.ON) viz.phys.enable() # add room room = viz.add('court.ive') # add subject female= viz.add('vcc_female.cfg') female.setPosition([0,0,0]) female.state(1) #add confederate male= viz.add('vcc_male.cfg') male.setPosition([0,0,5.9]) male.setEuler(180, 0, 0) male.state(1) # set starting view location viz.MainView.setPosition(male.getPosition()) print male.getPosition(), viz.MainView.getPosition() viz.MainView.setEuler(male.getEuler()) I noticed that when I comment out the second line, it puts the view in the correct position (except for height). Could someone please explain this to me? Thanks! |
#2
|
|||
|
|||
Since you have viz.collision enabled and you trying to move the viewer to a position that would cause a collision Vizard is leaving the view in its original position. When you comment out viz.collision the view moves to the male avatar position which has height set as 0
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
e.obj2 in collisions | Andrey | Vizard | 3 | 07-10-2008 07:54 PM |
collision with physics enabled | joeymax | Vizard | 2 | 04-17-2008 03:49 PM |
Camera collisions with duckcourt code | shivanangel | Vizard | 2 | 03-14-2008 12:46 PM |