User Information:

Cinema 4D Version: R14

Platform: Windows ;

Language(s) : C++ ;

---------

Hi Folks,

I'm just seeking some clarification on Matrix data. I've got rotation values - they're fine. But I'm having difficulties trying to work out position values (e.g. in millimetres) from the matrix values.

A little bit of an assumption on my behalf, but I gather that the position values are in radians too - is this correct?

I'd rather not use a function for now if possible - I'd like to have a go at making/running some of my own calculations first! Therefore, how does one go about calculating the position values from the matrix values?

I'm not concerned about scene unit values at this stage unless this fundamentally changes the equations (these conversions can be done afterwards anyway can't they?). Regards,

WP.

]]>User Information:

Cinema 4D Version: R14

Platform: Windows ;

Language(s) : C++ ;

---------

Hi Folks,

I'm just seeking some clarification on Matrix data. I've got rotation values - they're fine. But I'm having difficulties trying to work out position values (e.g. in millimetres) from the matrix values.

A little bit of an assumption on my behalf, but I gather that the position values are in radians too - is this correct?

I'd rather not use a function for now if possible - I'd like to have a go at making/running some of my own calculations first! Therefore, how does one go about calculating the position values from the matrix values?

I'm not concerned about scene unit values at this stage unless this fundamentally changes the equations (these conversions can be done afterwards anyway can't they?). Regards,

WP.

]]>Radians (and degree) are for angles. Positions are just positions, has nothing to do with Radians.

The position is in Matrix::off.

]]>I had thought that at first, and printing some values seem to indicate that, but other values are printing different results which is what's confusing/losing me.

Must be something else I'm doing/not doing. Thanks for the clarification Jack. I'll keep digging.

WP.

EDIT: re-wrote first paragraph so it made sense!

]]>Maybe you're mixing up local and global coordinates?

Without seeing any code we can only guess...

Ha,

I was just coming back on to let you know that's what I had done! I was printing global instead of local. It took me hours to notice that!!! D'oh!

Thanks Jack,

WP.

]]>