Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Using articulationBody Shaking

Discussion in 'Physics' started by Red_air, Aug 20, 2021.

  1. Red_air

    Red_air

    Joined:
    Dec 28, 2018
    Posts:
    4
    Hi guys,
    When I modify the target in update, articulationBody starts shaking.
    When I change the xDrive target of 2 angle per frame, the shaking becomes more intense, but when I change to 1 angle per frame, the shaking decreases.Shaking joints rotate all around the X-Axis.
    Unity2020.3.4 Do you guys have any idea?:(:( set.png
     
  2. Qleenie

    Qleenie

    Joined:
    Jan 27, 2019
    Posts:
    765
    Did you try doing it in "FixedUpdate"? As this is physics related, it should be done there.
     
  3. Red_air

    Red_air

    Joined:
    Dec 28, 2018
    Posts:
    4
    Thank you for your reply. It also still shaking.
     
  4. Qleenie

    Qleenie

    Joined:
    Jan 27, 2019
    Posts:
    765
    Ok, hard to say without knowing more. But you set the mass to 0, is this intentionally? You can also add damping and friction, which should minimize shaking.
     
  5. Red_air

    Red_air

    Joined:
    Dec 28, 2018
    Posts:
    4
    I modified the fixed timestep to 0.005, and the shaking amplitude of the joint was reduced.It may be related to the data interval transmitted by the controller. My controller sends data to the app every 100ms through the socket, and then the app sends the data to me every 20ms.Thank you again for your reply.