   linking 2 spheres
  hello,i have 2 spheres in my directx application that i want to visually relate somehow. any advice on how i should do it? i also want the link to be dynamic so that if i move one of the spheres, the link should still be linked to the sphere.thanks for your time,Zahid   
Quote:Original post by zahidayari have 2 spheres in my directx application that i want to visually relate somehow. any advice on how i should do it?There are lots of different possibilities - depends what you mean by "visually relate". It could be as simple as sharing the same colour, or more complex transformation/animation properties.Quote:Original post by zahidayari also want the link to be dynamic so that if i move one of the spheres, the link should still be linked to the sphere.So, you want the linked sphere to move the same direction/distance as the original sphere? That'd just be a simple case of using the same matrix transformations with a different starting point/origin. You might want to read-up on your matrix mathematics for further details on this - its more a maths thing than anything specific to the API.hthJack;  thanks for the reply Jack,what i mean by visually relate is ... you know how in a graph, there are nodes and edges. well in my application, i have spheres which can be like the nodes and now i need lines to connect those spheres.do you know how i can do that?