- Home /
Question by
MountDoomTeam · May 18, 2013 at 11:53 AM ·
mecanimidle
Mecanim robot tutorial Rocketpack?
i put this line to try and turn walking off when the robot is flying, but his is still walking if i go forwards in the air.
if (Physics.Raycast(ray, out hitInfo))
{
// ..if distance to the ground is more than 1.75, use Match Target
if (hitInfo.distance > 1.75f)
{
Quaternion.identity, AvatarTarget.Root, new MatchTargetWeightMask(new Vector3(0, 1, 0), 0), 0.35f, 0.5f);
anim.SetBool("Idle", true);
anim.SetBool("Locomotion", false);
}
}
Comment