Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Any way to prevent AI from phasing into eachother?

dekon_17
Registered User
Quote
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?


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

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


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

I ACTUALLY DID IT

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!
🔎︎



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

Wow, Bravo


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (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