I want the camera above the shoulders of each animal so as the animal walks, so your view is constantly over the head of the animal. I’ve spent more time trying different solutions than I want to admit.
It’s misleading to say the camera is following the animal. You can’t move an object, animal or otherwise, via the keyboard or mouse. You’re controlling the camera movement in space. So this code actually makes the animal follow the camera. It’s present the appearance of the camera following the animal.
I present three different possible solutions. The one that is most ideal is camTiger. It’s not perfect though because you have to turn of the camera collision.
Can the camLion be coded to ignore collisions with charLion but react to other collisions?
How about creating a Follow mode, like there is a Walk and Fly?
Here’s the space https://cospac.es/i50q