Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

"Double transform" on 2D hitboxes

Discussion in 'Animation' started by Le-Capitaine, Sep 19, 2020.

  1. Le-Capitaine


    Jan 23, 2014
    Looked at a couple threads already and I couldn't get a solution, was wondering if there've been any advancements since then.

    I've got a handful of animations like this one, where root motion occurs and the hitboxes, which aren't parented to the root bone, are made to follow.

    Capture d’écran de 2020-09-19 12-11-22.png

    So far so good. In Unity, though:

    Capture d’écran de 2020-09-19 11-59-17.png

    (This screenshot was taken at the end of the animation. It shows the hitboxes well in front of the character.)

    I know why this occurs (hitbox motion is added onto root motion), but I'm no closer to a solution. The one thing I don't want to do is forcing my hitboxes in place in Blender and losing my WYSIWYG system. I'd originally looked into parenting my hitboxes to my root bone, but that came with rotation issues.