Kinds-of-Intelligence-CFI / animal-ai-unity

Animal-AI Unity
https://github.com/Kinds-of-Intelligence-CFI/animal-ai
Apache License 2.0
2 stars 2 forks source link

Expand Raycasting to Include Special Objects #16

Closed alhasacademy96 closed 1 year ago

alhasacademy96 commented 1 year ago

-------[Moved from unity-ai-repo]

At the moment raycasting only 'senses' 6 objects: the arena, immoveable objects (all ramps, walls, tunnels, etc.), moveable objects (all boxes), GoodGoal, GoodGoalMulti, and bad goals (BadGoal and DeathZone).

It would be handy to have the outputs of the spawner objects be 'GoodGoalMulti' at least, and to have HotZones be detectable through raycasts.

kozzy97 commented 1 year ago

Can I just check with this whether transparent objects are detected as immoveable, or not at all? I have been experimenting a bit and it looks like the raycasts ignore transparent objects. This is fine, but should be in docs, which I don't think it is at the moment.

alhasacademy96 commented 1 year ago

I can confirm that the transparent objects are indeed detected as immovable.