You really like doing things the complex way don't you :-P
dot product is right ;-) at least for unit vectors - haven't checked
it for others cause I'm a lazy slob. As well as being the cosine it
also happens to be the length along the other vector it extends.
Cheers,
Alan.
On 10/19/06, Kim Aldis <XSI(at)kim-aldis.co.uk> wrote:
The dot product gives you the cosine of the angle between two vectors. I
think what you want, Serguei, is to project the motion vector of the moving
object onto your direction vector. There's a way to do this that's easy but
I've forgotten. Check out the vector math link posted here earlier, there
should be something there.
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
> Behalf Of Alan Jones
> Sent: 19 October 2006 13:08
> To: XSI(at)Softimage.COM
> Subject: Re: Motion along a specified vector
>
> Hi Serguei,
>
> I think you'll find that the dot product give you what you're after.
>
> Cheers,
>
> Alan.
>
> On 10/18/06, Serguei Kalentchouk <serguei.kalentchouk(at)ubisoft.com>
> wrote:
> >
> >
> >
> >
> > Hey all,
> >
> > I am trying to find a way to isolate motion along a specified vector?
> >
> > What I would like is to transform something in x and y and get a
> value
> > of how much it moved along a vector that I specify.
> >
> > Any help would be much appreciated.
> >
> >
> >
> > Cheers!
> >
> >
> >
> > Serguei K.
> >
> > - Ubisoft Cinematics -
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> body:
> unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi