Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ArthurER |
Hi , I am having difficulty with RayCast2d that I added to vehicle units to help them drive around obstacles. for one unit it works great , I don’t meant that only one unit works right , I can instance a few jeeps and a few tanks and if I select any one of them they are able to avoid running into things ,but if I select more than one , the RayCast’s seem stop working , so if I select say three vehicles and point them into an obstacle they no longer respond and drive around it.
but… if I drive a few units to a place they get stuck , and select one while it is stuck without giving a second click to set destination the RayCast starts working again and it navigates the obstacle while the others stay stuck until I click on them.
I am wondering if it may be something about
units = space.intersect_shape(query)
that wakes them back up, but am not really sure or what I can do about it.
still don’t know how to post images here right but “vehicles” and “box select script” do link to images on right click.
ArthurER | 2020-09-30 21:09
Like this:
https://i.ibb.co/H2h6YRV/script.jpg
https://i.ibb.co/H2h6YRV/script.jpg
You weren’t linking the image properly. You were linking pages with the images on them, but not the images themselves (url didn’t end in .jpg).
exuin | 2020-09-30 22:40
Thanks exuin
ArthurER | 2020-09-30 23:07