Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
AI using Waypoints to avoid obstacles

creaturefreak
Registered User
Quote
2020-04-06 12:12:27

Hey all, Thought I'd share with you what I've been experimenting with. As you may recall I was trying get some obstacle avoidance programming to help with the AI navigating around a scene with obstacles in it. I'm trying different methods and seeing which is more efficient and accurate.
Here's another attempt using "waypoints" object nodes to help the AI navigate around a scene. The Enemy is not using a native path but using custom objects placed around the scene. These objects are part of a group which are being counted and indexed in a "Loop for" script. The enemy uses these index in those objects to navigate. When he also "sees" the player he will chase them and when he loses sight of them he will go back to his waypoint path, avoiding hitting objects.

I'm hoping you guys can find this useful and possibly add on to this with a behavior or action script.

here's a video roughly explaining what I,m doing
https://youtu.be/vs-WgygFBdQ

here's where you can download the source file
https://drive.google.com/open?id...

thanks for looking

CF


yalazkan
Registered User
Quote
2020-04-06 20:38:35

Great job, great video, very useful… Thanks dude


creaturefreak
Registered User
Quote
2020-04-07 07:54:28

wrote:
Great job, great video, very useful… Thanks dude


Thanks yalazkan ! still learning


MuTan
Guest
Quote
2020-04-07 11:37:59

Wow, that's neat!
It improved the intelligence of the AI quite a lot!


creaturefreak
Registered User
Quote
2020-04-08 12:20:15

MuTan wrote:
Wow, that's neat!
It improved the intelligence of the AI quite a lot!


Thank you Mutan! CCube has amazing possibilities more then any engine I've played with. So hopefully we can take advantage of this and make it more powerful.

CF


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact