Jump to content

Sign in to follow this  
PatrickZ

Hinge and Motor not working as expected

Recommended Posts

I wanted to build a marble machine with a kind of archimedic screw as an elevator. I wanted to use a dynmaic motor and hinge to create the rotating screw, but it doesn't work. I'm pretty new to C4D so I don't have a clue why it's not working. Without the motor the hinge works es expected (only rotations about the Y-Axis). When I add the motor it behaves very strange. Depending on the target speed and the torque of the motor strange things happen.
For example:
- The hinge moves in its X and Z direction

- The hinge rotates about all three axis

- The spiral starts rotating in one direction and then changes it's direction#

But the spiral always stays upright.

Can somebody please have a look at the model and simulation I attached?

 

Ps: I'm open to every critic on my modelling style as I'm really new to 3D-Modelling.

Marble Machine.c4d

Share this post


Link to post

Scene works just fine. Only problem is slow speed in motor settings since rotation is very slow. Increase parameters "Angular Torque Speed" and "Torque" to much higher values, for instance 2000 and 1000.

 

great idea btw 🙂

Share this post


Link to post
  • Topic Author
  • Thank you for your reply but I can't get it to work properly. With your recommendet motor settings (2000 speed and 1000 torque) it works fine for about 80 frames but then it completely stops. I tried a whole bunch of different torque & speed combinations but I can't get it to work properly. And I think 2000° is way too fast for this application. And there is still the problem, that the spiral is slightly moving / jiggling in the XZ-Plane.

    Share this post


    Link to post

    here is video with that settings. Used cached dynamics (bit faster while playback)

    there is also needed to set parameters maybe more precise, because as you can see dynamics reacts on all conditions as in real life (friction etc...)

    https://www.dropbox.com/s/y85zeqvew5e7ik7/marble.mp4?dl=0

    Share this post


    Link to post

    You don't actually have to use a motor - you can make the helix a collider and just turn it in the usual way eg keyframe or XPresso.

     

    In this scene I used a python speed control. I gave the sphere some damping.

     

    marble.c4d

    Share this post


    Link to post
  • Topic Author
  • Thanks @bezo for trying it, tomorrow I'll try it for one more time and check every setting.

     

    Thank you @jed for sharing the python speed control. Tomorrow I'll have a closer look at it. I already had the idea to use XPresso for animating it but I haven't worked with that yet. The Python approach seems really interesting and I'm a programmer and know Python pretty well, so I think this is the way I'll stick with.

     

    Share this post


    Link to post

    @PatrickZ a typical XP rotation would be

     

    xp_rot.PNG.40fde88c4871e50a823e1a2f882ca777.PNG

     

    since rotation in XPresso is in radians, using seconds puts you in the right ballpark 😀

    Share this post


    Link to post

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    Sign in to follow this  

    • Recently Browsing   0 members

      No registered users viewing this page.

    ×
    ×
    • Create New...