Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > CopperCube > Programming and Scripting
Any way to prevent AI from phasing into eachother?
Author Text

Registered User
2022-04-04 16:50:18

AI thing (that only works in pair with standart CopperCube AI) that I've made is, surprizingly, works pretty well. But he-ey, the thing that AI lacks is... Collision! It might sound weird at first, but hear me out: while characters collide with world, they don't collide between themselves, which makes a bit...

Weird stuff. Yeah, there's like 5 or more infected in one place, which isn't nice. I've tried to attach a box meshes to them (collision was enabled), but it didn't go well, because it had no collision in result (I don't know why). And, uhm... I don't have a clear solution to this issue. I mean, sure, I can try to edit the AI for "a bit", to make the not phase into eachother (and it will probably take SOME time), but there is no guarantees that it will be a great solution. The only thing that came in my mind was 9mm bul- the cycles like "for" or "do while". But is there like... A different approach to this? Maybe something easier?

Registered User
2022-04-04 16:53:48

Sorry I'm not sure there is . The ccb built-in AI is kinda busted.

Registered User
2022-04-04 19:49:22


I don't know how did I even managed to do this in a state when I gave up on programming and was so bored that I couldn't see basic mistype of "}" or ";", but I DID IT:

I mean, it is a bit janky, but damn... I can't belive I done this using "For" cycle. I thought the game will die from having a cycle that activates every frame, but it didn't. Even with ten enemies (at least on this epic 4K 60 FPS GIF), it still works!

Registered User
2022-04-04 21:11:35

Wow, Bravo

Create reply:

Posted by: (you are not logged in)

Enter the missing letter in: "Internati?nal" (you are not logged in)




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



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