playMaker

Author Topic: Pathfinding Actions Beta  (Read 91157 times)

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Pathfinding Actions Beta
« Reply #30 on: October 18, 2012, 11:55:37 AM »
i just wanted to ask whats the best way to share a scene or project,ive incorporated reds Ai with navmesh and would like to share or if people could improve on what ive done on the scene file,or project whatever is best, if i go to the project and compress its too big.

thanks
« Last Edit: October 18, 2012, 12:36:52 PM by gamedivision »

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Pathfinding Actions Beta
« Reply #31 on: October 18, 2012, 03:40:57 PM »
if i create a prefab then add it to the scene it doesn't keep the destination object on SetDestinationGameObject,so i have to manually re add the destination object,also on the get distance,it doesn't keep the target ,u have to manually add those.any ideas or am i in the wrong and it would never save those when creating prefabs.

thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: Pathfinding Actions Beta
« Reply #32 on: October 19, 2012, 02:37:10 AM »
Hi,

 first, sharing playmaker content should be done by exporting your assets using the "Export package" option from the assets menu.

WARNING: Always remove the playmaker.dll file in the list of assets you are going to package ( Unity will give you that list before you save it). Playmaker.dll is not permitted for distribution.

Second, Unity Prefab system do not store reference to objects in your scene, only reference of gameObject parented to itself. You will have to manually set these scene gameObject references after the prefab is instantiated. USe of global variables is commong in this case, but you can also simply send an event to the newly instantitate prefab right after you created it and pass it a reference to the target you want it to follow, or have the prefav itself find out from your system what it needs to follow ( maybe find the player by tag, or something)

bye,

 Jean

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Pathfinding Actions Beta
« Reply #33 on: October 19, 2012, 09:28:59 AM »
thank you jean

zoic

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Pathfinding Actions Beta
« Reply #34 on: February 09, 2013, 01:19:06 PM »
Great actions...works great but..

Q.   Is it possible for navagent to avoid newly created objects ?

Example - I create a bulding and navagent see it like static object ... or i need any other method

or there are limitations  in Unity navmesh for this yet ?

 i saw somthing like navmesh obstcles? is it in unity 4  ?

http://docs.unity3d.com/Documentation/Components/class-NavMeshObstacle.html

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: Pathfinding Actions Beta
« Reply #35 on: February 18, 2013, 12:55:03 AM »
Hi,

 cool, this is a new feature,it wasn't available at the time when I ported navmesh.
 
Let me finish mecanim support, then I have two three threads waiting ( poolManager for example) and I'll then tackle this. Could you bump this in 2 weeks of so? I would greatly appreciate!

bye

 Jean

kLy

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Pathfinding Actions Beta
« Reply #36 on: March 11, 2013, 10:39:01 AM »
Let's see... more than 2 weeks now... BUMP! :D

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Pathfinding Actions Beta
« Reply #37 on: March 11, 2013, 02:07:18 PM »
Has anyone compared using these Actions versus using Sven's actions along with Aron's A* Kit?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

zoic

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Pathfinding Actions Beta
« Reply #38 on: March 15, 2013, 04:21:05 PM »
Let's see... more than 2 weeks now... BUMP! :D
i think it will not help much.. becouse of unity limitations yet..

obstacles have circle collaider zone, so its not usefull for buldings with corners...

and i think we can wait 2 weeks,2 month or 2 years if needed ))

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: Pathfinding Actions Beta
« Reply #39 on: March 18, 2013, 02:59:40 AM »
Hi,

 in the process of finishing everything, I am left with mecanim, pool manager/targetpro, arraymaker and then I'll tackle this :)

bye,

 Jean

holyjewsus

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Pathfinding Actions Beta
« Reply #40 on: March 19, 2013, 06:42:20 PM »
Hey Jean,

I've definitely run into some problems with these actions but it's tough to tell where the error is:

Using the agentSetDestinationGameobject action works fine twice, (the agent moves to one point, checks the distance, moves back to another point) but the third time I call set destination gameobject, the path never gets recalculated and the agent never moves, then the distance checks are all 0 and the path status complete events fire...

I've changed this FSM to use agentsetdestination and I use the position of the gameobjects instead and this works fine, my guess is this setDestinationGameojbect action may have a bug, I'll take a look at the code when I can.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: Pathfinding Actions Beta
« Reply #41 on: March 25, 2013, 01:10:02 AM »
Hi,

 Uhm.. I suspect it could be something a lot more twisted then just that feature. You have no warnings or log firing at the time it fails to perform?

bye,

 Jean

holyjewsus

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Pathfinding Actions Beta
« Reply #42 on: March 31, 2013, 04:20:48 PM »
no, I took a look at the code of the set gameobject as destination, and it seems like it cannot work for stationary objects.  I'll post my changes soon.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: Pathfinding Actions Beta
« Reply #43 on: April 01, 2013, 05:48:00 AM »
Hi,
 
 ok, not sure what you mean, but be sure to post, if it turns out giving a more predictable result, I'll include it in the package,

 bye,

 Jean

SteveB

  • Playmaker Newbie
  • *
  • Posts: 29
Re: Pathfinding Actions Beta
« Reply #44 on: May 06, 2013, 05:08:31 PM »
Hey guys! Just perusing the site and came across this thread; is there a plan for Unity pathfinding to be officially integrated into Playmaker?(I know this is the 'Offical Actions' thread but it's still a separate download :D)

What's the status of this action currently with Unity 4.x?

Thank you!

-Steven