Jump to content
  • Advertisement
Sign in to follow this  

3D aligning object with vector?

This topic is 2342 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

Hi all, just wondering if you could help me.

I have 2 objects. Object2 is parented to object1 so uses its coordinate space.

What im trying to do is have object 2 always n distance away from object 1 but always in aligment to a GLOBAL vector.

So if i have a global vector. object 1 can move around and rotate, and object 2 is always following object 1 but in the direction of the global vector.

How might i do this?

illustration to help: (2 examples, the green arrow is the global vector)

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!