When using the class sensor option and storing the observations in a float array, an error occurs:
E 0:00:17:0513 RobotAIController.gd:37 @ get_raycast_sensor_obs(): Attempted to append_array a variable of type 'bool' into a TypedArray of type 'float'.
<C++ Error> Method/function failed. Returning: false
<C++ Source> core/variant/container_type_validate.h:97 @ validate()
When using the class sensor option and storing the observations in a float array, an error occurs:
Converting the type of the class sensor detection to float resolves this issue.