WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-02-2009, 09:33 PM
hosier hosier is offline
Member
 
Join Date: Feb 2007
Posts: 31
vizact.goto/move using ABS instead of local

Is there any option to vizact.goto or vizact.move to have it use ABS coordinates? I know the documentation for move says it uses local coordinates, and from my testing it looks like goto does too.

Otherwise I supposed I'll just have to calculate the ABS coordinates myself before calling the goto?

Thanks.

Aaron
Reply With Quote
  #2  
Old 11-03-2009, 10:03 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
No, the vizact.goto action does not have this option. You will need to compute the coordinates yourself and pass it to the action.
Reply With Quote
  #3  
Old 11-03-2009, 02:19 PM
hosier hosier is offline
Member
 
Join Date: Feb 2007
Posts: 31
Is there a function in Vizard where I could take absolute coordinates x,y,z and it would calculate what the local coordinates would be for an object? My geometry is a little rusty and while I could probably work this out after a while, if Vizard had something that could do the calculations, that would be great.

Thanks.

Aaron
Reply With Quote
  #4  
Old 11-03-2009, 03:53 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Just have Vizard perform the calculation for you:
Code:
curPos = node.getPosition() #Save current position
node.setPosition(desiredPos,viz.ABS_GLOBAL) #Apply desired absolute pos
gotoPos = node.getPosition() #Get computed local pos
node.setPosition(curPos) #Restore position
Reply With Quote
Reply

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


All times are GMT -7. The time now is 06:32 AM.


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