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

    Rotating Joints / absolute coordinates

    SDK Help
    0
    2
    209
    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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 29/12/2010 at 06:12, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11.5 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      For example, I have two joints. The first should be at position (0 0 0) and the second should be a child of the first and be at position (1 2 3).
      I get the relative coordinates for CAJointObject::SetPos() with "PositionSecond - PositionFirst".
      But now I want the first joint to be rotated by a 3x3 matrix, but the secondJoint should still be there where it was before.
      The problem is that there is no SetAbsPos for joints 😞
      How can I solve this problem?

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 03/01/2011 at 02:34, xxxxxxxx wrote:

        Save the global matrix of the child joint before you are doing the translation of the parent joint. After the translation restore the global matrix of the child joint. Please take a look at BaseObject::GetMg()/SetMg().

        cheers,
        Matthias

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