WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 09-24-2008, 10:17 PM
vTony vTony is offline
Join Date: Sep 2008
Posts: 7
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:


# add room
room = viz.add('court.ive')

# add subject
female= viz.add('vcc_female.cfg')

#add confederate
male= viz.add('vcc_male.cfg')
male.setEuler(180, 0, 0)

# set starting view location
print male.getPosition(), viz.MainView.getPosition()

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!
Reply With Quote
Old 09-25-2008, 09:12 AM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,449
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
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
e.obj2 in collisions Andrey Vizard 3 07-10-2008 06:54 PM
collision with physics enabled joeymax Vizard 2 04-17-2008 02:49 PM
Camera collisions with duckcourt code shivanangel Vizard 2 03-14-2008 11:46 AM

All times are GMT -7. The time now is 02:26 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC