playMaker

Author Topic: npc vector moving  (Read 968 times)

Prestonh

  • Playmaker Newbie
  • *
  • Posts: 44
npc vector moving
« on: November 07, 2018, 09: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: 15500
  • Official Playmaker Support
Re: npc vector moving
« Reply #1 on: November 13, 2018, 12:56:58 AM »
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