View Single Post
  #3  
Old 05-05-2009, 11:45 PM
Penguin Penguin is offline
Member
 
Join Date: Mar 2009
Posts: 14
This is not exactly what I meant.

For illustrating I attached some screen shots:

Left picture:
Start position. object1 = blue torus, object2 = white torus)

Middle picture:
Your end position. Your code seems to copy the complete orientation of object2 to object1

Right picture:
Desired end position. I want to rotate object1 according to the orientation of object2. Kinda object1.setEuler([0,0,45],viz.REL_LOCAL_of_object2)
Attached Thumbnails
Click image for larger version

Name:	Start.png
Views:	1116
Size:	17.2 KB
ID:	316   Click image for larger version

Name:	YourEnd.png
Views:	1140
Size:	18.3 KB
ID:	317   Click image for larger version

Name:	MyEnd.png
Views:	1118
Size:	18.8 KB
ID:	318  
Reply With Quote