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

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

Rectify canChangePerspectives parameter to lock to FP-perspective #23

Closed alhasacademy96 closed 4 months ago

alhasacademy96 commented 9 months ago

Currently, the camera, if canChangePerspectivesparameter is toggled OFF, will result in only the _cameraFollow (third-person perspective, behind the agent/shoulder camera) rendering. Having chosen the first-person perspective camera via code will result in "Display 1, no cameras rendering" screen (see below):

Screenshot 2023-10-04 163348
alhasacademy96 commented 9 months ago

It seems that the code does indeed fetch the yaml correctly and the code does lock the camera to the correct camera attached to the Agent, based on the console logs. However, i suspect that it could be that the MainCamera overrides the lock, thus changing the camera perspective to the default which is above the scene.

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 30 days with no activity.