dave2011
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
|
| 16 Mar 2014 11:57 AM |
| I have a human and when a person clicks I want the person to go wherever the player told them to go... but if I use humanoid:MoveTo() the person could get stuck, any ideas to make the person go around hills or whatever is in the way? |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2014 11:58 AM |
| lualearners used to have this. lualearners shutdown. :l |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 16 Mar 2014 12:02 PM |
| You'd have to do some research on google. You might consider looking at the A* path finding algorithm |
|
|
| Report Abuse |
|
|
comiconor
|
  |
| Joined: 26 May 2009 |
| Total Posts: 16893 |
|
|
| 16 Mar 2014 12:03 PM |
I shut down lualearners,
but I do create AI. |
|
|
| Report Abuse |
|
|
comiconor
|
  |
| Joined: 26 May 2009 |
| Total Posts: 16893 |
|
|
| 16 Mar 2014 12:04 PM |
| Actually, I shut down the lualearners group, not the website. |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
| |
|
|
| 16 Mar 2014 12:05 PM |
http://wiki.roblox.com/index.php/Algorithms
These are the 2 most common methods (from what I've seen in ROBLOX): http://wiki.roblox.com/index.php?title=A* http://wiki.roblox.com/index.php?title=Best-first_search |
|
|
| Report Abuse |
|
|
comiconor
|
  |
| Joined: 26 May 2009 |
| Total Posts: 16893 |
|
|
| 16 Mar 2014 12:07 PM |
| What I use is raycasting. I make the robot choose a random direction, forward at first, and if there's a wall there, I make it spread the search out until it's done a complete circle. |
|
|
| Report Abuse |
|
|
dave2011
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
|
| 16 Mar 2014 12:24 PM |
| well I guess its time for me to learn raycasting |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2014 12:28 PM |
Raycasting and lookvector works fine, but using the other sources (A* and etc.) Is a good place to start.
Hire me! http://www.roblox.com/Forum/ShowPost.aspx?PostID=128214378 |
|
|
| Report Abuse |
|
|
dave2011
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
|
| 16 Mar 2014 12:31 PM |
| I looked at the wiki and dont really understand A* at all luls |
|
|
| Report Abuse |
|
|