From:          "Jonathan Wolff" <RODNEY/JON>
To:            "Marty 'Bunny' kins" <BAGPUSS/MARTINP>
Date:          Thu, 22 May 1997 13:39:31 +0
Subject:       Re: Little query for you.
X-mailer: Pegasus Mail v3.22
X-PMFLAGS: 1048704

> OK imagine the situation where you have two points. Each in different 
> actor models. I need to calculate their exact positions in world 
> space so I can perform other calculations on them / connect them by 
> creating a third dummy model with lines etc.
> 
> In this situation would the below code you have supplied work?

Well, BrActorToActorMatrix34 works with any pair of actors, so it 
depends what you want to do.  If you want to create line object 
joining two points on two actors, you could choose a parent actor for 
the new object's frame of reference (for instance the world, but it 
could be anything that isn't going to move after you've generated 
this model), generate the matrices for transforming points from the 
two actors to that frame of reference, then make a model with those 
two points and add an actor in to the reference object with the 
identity transform.  Or you could make either of the objects the 
parent actor, which would save you transforming one of the points.  
This would also be suitable for working out the bearing and elevation 
relative to that actor's current position and orientation, so if you 
want an object to follow another object you could use that technique 
to work out which way it should turn and how much, regardless of what  
frame of reference that actor is in.




--
                                            .-----------------------------.
                                            `-----.  .---.-----.-.--.----.'
                                                  `.  `.|  .-.  |`.  .-.  |
                                             .-----'   ||  `-'  | |  |.'  |
                                            |  .------'  `-----'  `--'`--'
                                            `--'
