Problem is, that if the obstacle is straight behind the camera while looking in the direction of the identity, it is in a constant forward/backwards state = jittering.
Maybe this is to be solved with different states depending on the distances between the camera and the obstacles?
Code so far:
Problem is, that if the obstacle is straight behind the camera while looking in the direction of the identity, it is in a constant forward/backwards state = jittering.
Maybe this is to be solved with different states depending on the distances between the camera and the obstacles?