#How do you make an ai collide with walls?

48 messages · Page 1 of 1 (latest)

lilac vortex
#

I'm not using rec room AI It's just an object that follows the closest player

eager hornet
lilac vortex
#

its too much ink thats the issue

torn hearth
agile inlet
#

Does an invisible collision not work? Or am I just stupid?

lilac vortex
lilac vortex
torn hearth
#

I’m still trying to figure it out too this is just what people have been using

lilac vortex
#

oh ok cheers

torn hearth
#

Also if you just want the ai to stop at walls and don’t care abt pathfinding just have a trigger volume and if objects in it are greater than( however many objects are on the ai) then it stops

#

Also make sure they reverse away from the walls or they’ll get stuck there

#

Man I haven’t done this in a while lol

lilac vortex
#

cheers for the help

sick belfry
lilac vortex
#

oh

#

cheers

sick belfry
#

The min/max chips are redundant, but they will eliminate rounding accidents due to floating point operations. They can likely be eliminated to save some heat

lilac vortex
#

i also just tried the whole circuits but i think i have to of done something wrong let me get a video and show what happens

sick belfry
#

The algorithm is far from perfect, but I think you may have an error somewhere for it to make that poor turn away.

lilac vortex
#

probably the angle thing

sick belfry
#

This is what I have after translating that algorithm to cv2, with some minor modifications.

lilac vortex
#

does it fully work

sick belfry
#

It works as well as the algorithm allows it too, but it isn’t a very intelligent algorithm. It can’t navigate too complex settings

lilac vortex
#

oh fair

sick belfry
#

My bot navigates around most walls to get to me. But some wall patterns it goes back and forth.

lilac vortex
#

that doesn't matter to much tho as it still works

#

i just got it kind of working but it some how escaped when there is no hole

sick belfry
#

I think it might be beneficial to use spherecast instead of Raycast.

#

Enemies have size to them, but Raycast checks for a single point of access, not an area

lilac vortex
#

thats fair

lilac vortex
#

bcs i scaled mine by -1

#

but i don't know if thats how to do it

lilac vortex
#

some of the walls aren't colliding with it

#

and somehow it rotates

#

upside down

sick belfry
#

What is your marginCollision value set to?

lilac vortex
#

2.2

sick belfry
#

Your step might be too large. You are taking large steps. Would need to see the circuitry tho

lilac vortex
#

alr

#

give me like 10 minutes

sick belfry
#

In the top right, there is an add chip. One of the values goes down-left out of view. What is it