- Home /
Question by
mblogest · Jun 11, 2020 at 08:48 PM ·
animationanimatornavmeshagentlookattarget
problem with calculate between navmeshagent dirction and model lookat with animator
i have a animator like pic1 . ai with two variable move y==1 forward y=-1 backward and with x=1 Goes to the right and x=-1 Goes to the left.
model.transform.LookAt(mytarget.transform);
agent.SetDestination(pos.transform.position);
anim.SetBool("aim", true);
Vector3 move = agent.desiredVelocity;
anim.SetFloat("x", move.x);
anim.SetFloat("y", move.z);
how to calculate navmeshagent move direction and model lookat(aim) with animation. actually i want my ai can backward and straf left and right with angle of lookat
Comment