Sign in to follow this  
AndyGil

3D aligning object with vector?

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 [i]n [/i]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)
[img]http://img844.imageshack.us/img844/2333/vec.png[/img]
Thanks
Andy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this