Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Radian to position

    SDK Help
    0
    5
    409
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 10/05/2013 at 00:56, xxxxxxxx wrote:

      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.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 10/05/2013 at 02:25, xxxxxxxx wrote:

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

        The position is in Matrix::off.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 10/05/2013 at 02:40, xxxxxxxx wrote:

          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!

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            On 10/05/2013 at 02:46, xxxxxxxx wrote:

            Maybe you're mixing up local and global coordinates?
            Without seeing any code we can only guess...

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              On 10/05/2013 at 02:59, xxxxxxxx wrote:

              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.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post