generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Roblox » All Things ROBLOX
Home Search
 

Re: Pathfinding API finally released

Previous Thread :: Next Thread 
luckyjack7 is not online. luckyjack7
Joined: 01 Jan 2011
Total Posts: 188
24 Jul 2014 08:56 PM
Go to studio and test it out. Use this script on a humanoid if you want to test it out yourself, all you have to do is put this script in a humanoid model

local service = game:GetService("PathfindingService")

local start = script.Parent.Torso.Position
local finish = workspace.Vector.Position

path = service:ComputeRawPathAsync(start, finish, 500)

print (path.Status)
if path.Status == Enum.PathStatus.Success then
local points = path:GetPointCoordinates()

for _, point in pairs(points) do
local part = Instance.new("Part", workspace)
part.Anchored = true
part.CanCollide = false
part.Position = point
part.Size = Vector3.new(2, 2, 2)
part.BrickColor = BrickColor.new("Really black")

script.Parent.Humanoid:MoveTo(point)

repeat
local distance = (point - script.Parent.Torso.Position).magnitude
wait ()
until distance < 3
end
end
Report Abuse
luckyjack7 is not online. luckyjack7
Joined: 01 Jan 2011
Total Posts: 188
24 Jul 2014 08:57 PM
Oh and also add a part to workspace called "Vector", that will be were your humanoid will go.
Report Abuse
vastscatman is not online. vastscatman
Joined: 28 Mar 2012
Total Posts: 3461
24 Jul 2014 08:58 PM
COOL LOTS OF STUFF I DONT UNDERSTAND
Report Abuse
luckyjack7 is not online. luckyjack7
Joined: 01 Jan 2011
Total Posts: 188
24 Jul 2014 08:59 PM
Link to wiki page if you want to learn more http://wiki.roblox.com/index.php?title=Pathfinding
Report Abuse
luckyjack7 is not online. luckyjack7
Joined: 01 Jan 2011
Total Posts: 188
24 Jul 2014 09:08 PM
Still no CSG though which sucks
Report Abuse
VibrantSky is not online. VibrantSky
Joined: 28 May 2012
Total Posts: 5122
24 Jul 2014 09:09 PM
Darn you apple. We're waiting on you to get our CSG.

"All my life I had to fight"
Report Abuse
TerribleIdea is not online. TerribleIdea
Joined: 26 Oct 2011
Total Posts: 729
24 Jul 2014 09:09 PM
thx m8
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
24 Jul 2014 09:19 PM
Ooooh
New AI pathfinding methods :)!
Report Abuse
Cr0ws is not online. Cr0ws
Joined: 16 Aug 2013
Total Posts: 1545
24 Jul 2014 09:20 PM
Thanks I knew it was out since this morning and thought everyone knew.
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
24 Jul 2014 09:21 PM
This is somewhat stupid though, as coding pathfinding AI no longer requires any skill.
Report Abuse
Siccity is not online. Siccity
Joined: 21 Jun 2009
Total Posts: 14782
24 Jul 2014 09:24 PM
@Eternal

Isn't that good, though? Since it's much easier, there's no need to stress yourself making complicated scripts.
Report Abuse
luckyjack7 is not online. luckyjack7
Joined: 01 Jan 2011
Total Posts: 188
24 Jul 2014 09:25 PM
Think about it though, better games, faster developing and its really smart.
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
24 Jul 2014 09:26 PM
I suppose.
I'm going to do some experimenting to find out just how smart the pathfinding is.
Report Abuse
nobbers12345 is not online. nobbers12345
Joined: 06 Feb 2011
Total Posts: 4425
24 Jul 2014 09:26 PM
Does this go directly to point, or does it have the ability, to say, go through a maze?

Braghenaflarbenabeg.
Report Abuse
DashTechBeat is not online. DashTechBeat
Joined: 28 May 2011
Total Posts: 8214
24 Jul 2014 09:27 PM
"Pathfinding is disabled"
hm ok
Report Abuse
Cautionary is not online. Cautionary
Joined: 07 Jun 2012
Total Posts: 5647
24 Jul 2014 09:28 PM
add it to your character. o_o
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
24 Jul 2014 09:29 PM
@nob
Pathfinding uses algorithms to find the fastest route to the given point of interest.
So, theoretically, a good pathfinding script can find it's way through a maze.
Report Abuse
luckyjack7 is not online. luckyjack7
Joined: 01 Jan 2011
Total Posts: 188
24 Jul 2014 09:34 PM
If you get an error saying "Pathfinding is Disabled" then try restarting studio because you might not have the updated version.
Report Abuse
DashTechBeat is not online. DashTechBeat
Joined: 28 May 2011
Total Posts: 8214
24 Jul 2014 09:37 PM
WOAH! IT WORKED!
Report Abuse
Cautionary is not online. Cautionary
Joined: 07 Jun 2012
Total Posts: 5647
24 Jul 2014 09:40 PM
tried making a humanoid go around a maze, "Enum.PathStatus.FailFinishNotEmpty"
output says that.
Report Abuse
luckyjack7 is not online. luckyjack7
Joined: 01 Jan 2011
Total Posts: 188
24 Jul 2014 10:03 PM
make sure the point is in a open area
Report Abuse
luckyjack7 is not online. luckyjack7
Joined: 01 Jan 2011
Total Posts: 188
24 Jul 2014 11:24 PM
bumb for opinions
Report Abuse
Jazzyforcefield is not online. Jazzyforcefield
Joined: 12 Jan 2010
Total Posts: 18838
24 Jul 2014 11:25 PM
Pretty amazing.
Report Abuse
AppleScratch is not online. AppleScratch
Joined: 23 Oct 2013
Total Posts: 4071
24 Jul 2014 11:26 PM
Vibrant,
I don't like your language. >:C
Report Abuse
XILostINSpaceIX is not online. XILostINSpaceIX
Joined: 11 Jun 2012
Total Posts: 35766
24 Jul 2014 11:33 PM
CSG is coming out mid august Cheif said due to bugs
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » All Things ROBLOX
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image