playMaker

Author Topic: npc vector moving  (Read 55 times)

Prestonh

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
npc vector moving
« on: November 07, 2018, 07:56:03 PM »
What and how do you get a vector from a moving npc?   Im trying to animate the movements of a npc, but the only way i know is from the input axis vectors to animator float varibles.    But on a npc?   

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13512
  • Official Playmaker Support
    • View Profile
Re: npc vector moving
« Reply #1 on: November 12, 2018, 10:56:58 PM »
Hi,

you get the velocity of a gameobject using GetVelocity action.

You should also look on Unity forum on how to work with NPC and mecanim, as well as pathfinding ( which similar to npc )

https://docs.unity3d.com/Manual/nav-CouplingAnimationAndNavigation.html

https://answers.unity.com/questions/539419/how-do-i-use-mecanim-on-an-npc.html

 Bye,

 Jean