Jump to content
  • Advertisement
Sign in to follow this  
zahidayar

linking 2 spheres

This topic is 4421 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by zahidayar
i 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 zahidayar
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.
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.

hth
Jack

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!