Search Unity

(Help) - piston movement with hinge joints

Discussion in 'Physics' started by claus82, Apr 12, 2017.

  1. claus82

    claus82

    Joined:
    Jul 26, 2016
    Posts:
    1
    Hello to everyone.
    I am a beginner user, but I am not a coder, so here I am asking for help -Sorry for my english-.

    I need to create a piston movement for a crane (IMG1: shows the type of model, the hierarchy and I've shown the pivots),

    Now the problem:
    - I assign hinge joints,
    - I click the play button
    - I rotate the green cylinder
    - If I increase the green cylinder rotation, the white and the red ones rotate in an odd way, proportionally to the rotation given to the green pcylinder. (IMG2)
    - And in the original model (not this 3 cylinder example) the red and the white cylinder are not aligned (IMG3), I think even in this example model, but probably the pistons' position does not show the problem
    I show the joint that I' ve made (IMG4).
    I will be thankful to everyone that will help.
    Claudio
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      67.9 KB
      Views:
      938
    • 2.jpg
      2.jpg
      File size:
      71.6 KB
      Views:
      866
    • 3.jpg
      3.jpg
      File size:
      102.4 KB
      Views:
      911
    • 4.jpg
      4.jpg
      File size:
      343.4 KB
      Views:
      818