WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-20-2008, 02:30 PM
johannes2 johannes2 is offline
Member
 
Join Date: Apr 2007
Posts: 7
Positioning objects: center

I'm also having a hard time, positioning objects. Rotating and translating them with sinus and cosinus never leads to a perfect result. What to do?
Maybe it has to do with the center of the objects, but I do not seem to be able to fix it.

Tried the following:

1) Printing the center of the object.
print 'Center of Airtrack:'
print airtrack.get(viz.CenterCenter)
print 'Center of Glider:'
print gliderObj.get(viz.CenterCenter)

2) Changing the center:
gliderObj.center(0,airtrack.get(viz.CenterCenter)[1]-gliderObj.get(viz.CenterCenter)[1],0.08)

Surprisingly, printing the center after this still shows the sam center for gliderObj...

3) Trying it stupid / manually helped a bit but is no solution in the long run:
if key == 'b':
print 'air + gliderCenter'+ str(airtrack.get(viz.CenterCenter)[1]) + ' ' + str(gliderObj.get(viz.CenterCenter)[1])
offsetGliderCenterY=offsetGliderCenterY+0.01
gliderObj.center(0,-offsetGliderCenterY,-offsetGliderCenterZ)



How would you translate a glider on a slope that could be inclinded to different angles? Why does printing CenterCenter not show the new = different center. Did not find much help about this in the help-file.

Best,
Johannes
Reply With Quote
 


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
Could not find plugin to load objects... halley Vizard 1 05-30-2006 11:01 AM
Video Texture Not Working on Some Objects paulgoldberg Vizard 1 04-17-2006 12:41 PM
putting objects on the screen jargon Vizard 7 05-24-2005 11:31 AM
limits on number of objects benelux Vizard 3 07-22-2004 01:26 PM
3D sound & child objects FlyingWren Vizard 1 09-19-2003 12:13 PM


All times are GMT -7. The time now is 11:46 PM.


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