Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: Prestonh on November 07, 2018, 07:56:03 PM

Title: npc vector moving
Post by: Prestonh 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?   
Title: Re: npc vector moving
Post by: jeanfabre 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