Jump to content
  • Advertisement
Sign in to follow this  

3D aligning object with vector?

This topic is 2830 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!