Plugin Cafe's original forum is still archived and available for searches. The ability to post here has been disabled.
 
Developer's Forum [PREV] [NEXT]
Subject: RE: Setting position along objects axis....
From: Mark Weaver
Date: 9/17/2001 6:25 AM GMT
    >
    >To get your kind of translation, use this function
    >
    >MoveObject(obj, trans)
    >{
    >  obj->SetPosition(obj->GetPosition() + 
    >                   obj->GetMln()->GetMulV(trans));
    >}
    >

    >where for example trans=vector(100,0,0) moves obj
    >100 units along its X-axis. (The trans vector is
    >transformed from within the local system of the
    >object to the parent's system.)
    >
    >Mikael Sterner
    >Developer Support

    Mikael,
    Thanks for the help with the piece of code. It appears to do want
    I want and I've been able to incorporate it into my expression with ease.
    I'm still a little confused why this works, but hopefully, a little more
    digging into it I'll get it.

    Thanks for the help and code!!!! :-)

    Mark Weaver




Current Message String
new Setting position along objects axis.... - Mark Weaver - 9/13/2001 5:07 AM GMT
 new RE: Setting position along objects axis.... - Philip Losch - 9/13/2001 2:46 PM GMT
 new RE: Setting position along objects axis.... - Mark Weaver - 9/13/2001 3:54 PM GMT
 new RE: Setting position along objects axis.... - John Phillips - 9/14/2001 2:12 AM GMT
 new RE: Setting position along objects axis.... - Mark Weaver - 9/14/2001 4:14 AM GMT
 new RE: Setting position along objects axis.... - Mikael Sterner - 9/14/2001 7:57 PM GMT
 new RE: Setting position along objects axis.... - Mark Weaver - 9/17/2001 6:25 AM GMT
[PREV] [NEXT]