tcastudios
11-28-2005, 12:42 AM
I'm at it again..stumbling on the basics..but then I usually get off with a little push of help:)
In short. I need to place an object using COFFEE in the same manner as if it was a child in the OM.
That is, if I place an object under a Null and offset it by for example 100 units in the z direction and then rotate the Null(parent) the object will then "orbit" around the Null.
In my tries I use the tutorial in the SDK "Using Matrices". However that tut assumes that you have a object to "take" the values from and transfere it to the target.
What I have is no object, "only" the rotation value and a position.
I get to the point where I make a new Matrix and place the target.
I can also tranfer the rotation -but- only around the target "itself". Not around the initial position.
I assume it should be fairly simple in the end but getting into using Matrixes for "real" it is new ground for me. So far I have got by by only using "V0" of objects/positions and calculated the angle between them.
I'll put up my tries as soon as a get a little closer to something that looks like I'm on the right track.
Thanks and Cheers
Lennart
In short. I need to place an object using COFFEE in the same manner as if it was a child in the OM.
That is, if I place an object under a Null and offset it by for example 100 units in the z direction and then rotate the Null(parent) the object will then "orbit" around the Null.
In my tries I use the tutorial in the SDK "Using Matrices". However that tut assumes that you have a object to "take" the values from and transfere it to the target.
What I have is no object, "only" the rotation value and a position.
I get to the point where I make a new Matrix and place the target.
I can also tranfer the rotation -but- only around the target "itself". Not around the initial position.
I assume it should be fairly simple in the end but getting into using Matrixes for "real" it is new ground for me. So far I have got by by only using "V0" of objects/positions and calculated the angle between them.
I'll put up my tries as soon as a get a little closer to something that looks like I'm on the right track.
Thanks and Cheers
Lennart
