THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/10/2006 at 09:36, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ;
---------
I'm a little embarresed to ask, but I can't get my head around this..
I'm trying to read the local difference of two matrices.
Both matrices are placed along a spline using the same main position.
Matrix A (mainmatrix) is looking at a point a little ahead along the spline and thus gets its rotation.
Matrix B (submatrix) is looking at a point along the spline a little further than A. Now as they move along the spline there is a small difference in angles between the matrices. And that is what I'm after, I'm trying to get this little local vector value as a small positive resp. negative value as they "read" the curviature of the spline.
Reading the SDK and some answers here I see that using inverse matrix should be the way.
And this is where I fail:) I have no problems using MulP, MulM, MulV etc getting any value as a Global value. But any try inverting the main matrix makes my values flip.
Do I need to use a third reference matix or should these two matrices be enough?
As they are not matrices from a object I can't use "GetMl()".
Any pointers and tips?
Cheers
Lennart