To be more specific, I need to get the world/scene transform position vector3 of the end destination node in a path generated when I mouse click to move the player character.
I'm trying to make a homemade Spine animation integration, so a way to know the point of destination of a given toon would be priceless to my ends.
Thanks.
Comments
Vector3 targetPosition,
AC.Char _char = null
)
Vector3 targetPosition,
AC.Char _char = null
)
AC.KickStarter.player.GetTargetPosition ()
@Alverik: Yeah, the Paths component serves a dual-purpose. If you add it to a Player or NPC the regular Inspector controls get hidden - it's not the most elegant solution, but it does mean you can read/write it through script easily.