Search Unity

Mecanim MatchTarget

Discussion in 'Developer Preview Archive' started by tigershan, Sep 3, 2012.

  1. tigershan

    tigershan

    Joined:
    Jul 29, 2010
    Posts:
    73
    animator.MatchTarget (HitObject.position, HitObject.rotation, AvatarTarget.Root,0.78F, 0.9F, new Vector4(1,1,1,1));

    When I try to Match the object's root position and rotation with a HitObject position and rotation, It seems trying to match the HitObject, however, every time it executes, it seems always have 0.1 margin of error on x and z distance offset.... I need to make a very accurate position and rotation, how would I go off doing that?