![]() |
|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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 |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|