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
    • Recent
    • Tags
    • Users
    • Login

    translate to rotate

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 194 Views
    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 Offline
      Helper
      last edited by

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

      On 07/06/2008 at 15:37, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;

      ---------
      Howdy folks,
      I want a script that will cause a wheel, child of a null, to rotate in the direction of the null's + or - z direction without resorting to a spline. The circumference and the length of one degree of rotation/travel are known.
      Any suggestions?

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

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

        On 07/06/2008 at 21:48, xxxxxxxx wrote:

        You have to convert linear motion into angular rotation. If you know the linear motion distance, you have to determine the linear arc over the circumference that matches it. Then you need to find the angle this linear arc (arc length) represents - which can be using the circumference in a ratio (al/c is the percentage of 360d).

        In other words, the linear distance equals the distance along the circumference (disregarding slip and so forth). This is exactly how Measuring Wheels do their magic. 🙂

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