Search Unity

"Double transform" on 2D hitboxes

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

  1. Le-Capitaine

    Le-Capitaine

    Joined:
    Jan 23, 2014
    Posts:
    33
    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.