Search Unity

Question RigidBody and Root Motion making a weird oscillation!

Discussion in 'Physics' started by KiwiKiwiK, Jul 20, 2021.

  1. KiwiKiwiK

    KiwiKiwiK

    Joined:
    Mar 22, 2018
    Posts:
    2
    Hi!
    I'm making an 'attraction' system: when I click an object the character get attracted towards it, but right now it's making a weird oscillation.
    I'm using a Rigidbody and an "AddForce" toward the point of attraction, I found out that the oscillation disappears when I uncheck "use root motion" in my animator (but I need to keep it checked).
    In my Idle animation I have set the root Transform Position Y to Bake and at feet.
    Does anyone know what could be going on?
    With root Motion:
    WithRootMotion_2.gif
    Without root Motion:
    WithoutRootMotion_1.gif