relationship betwwen node position and node orientation

Get answers to all your basic programming questions. No Ogre questions, please!
robel
Halfling
Posts: 97
Joined: Fri Sep 28, 2012 4:12 pm

relationship betwwen node position and node orientation

Post by robel »

Hi,
i am here with my stupid questions :
this time i have another question about the relationship betwwen the position and the orientation of a node
so let's me explain my question :
if in frame1 i set just the node1 position and node2 position and i draw line between them where i do not set the two node orientation: what is the nodes orientation by default? have they the same orientation ?

in the frame 2 i change the node2 position in this case did the node1 orientation change too (because when we change the node2 position the line betwwen them will be change it's orientation too ) , did the node2orientation change
User avatar
Miscreant
Greenskin
Posts: 126
Joined: Mon Jun 14, 2010 2:12 am
Location: Brisbane, Australia
x 3

Re: relationship betwwen node position and node orientation

Post by Miscreant »

Unless you're explicitly rotating the nodes to face each other when you draw your line, I imagine the orientation of both would just stay as 0. If all you're telling the program to do is change the position of a node then that ought to be the only thing that changes - the orientation would stay the same.
robel
Halfling
Posts: 97
Joined: Fri Sep 28, 2012 4:12 pm

Re: relationship betwwen node position and node orientation

Post by robel »

ok,
i try it but i found that even the line orientation do not change it change just the position