Okay. I changed some of the bounding box and camera location vec_set numbers in Txesmi's code to try and fit what I hope to have for my game. I probably should have mentioned this before, but I prefer the player model to be in between the left side of the screen and screen center, kind of like the video game "Dead Space". To do this, I changed:

Code:
vec_set(&my->skOffsetX, vector(0, -7, 35)); // CENTER BEHIND PLAYER


to
Code:
vec_set(&my->skOffsetX, vector(0, -27, 65)); // PLAYER IS BETWEEN
                                             //    LEFT SIDE OF 
                                             //    SCREEN AND SCREEN
                                             //    CENTER.



Because I changed the location of the player to this location, I am now getting the same bug in Txesmi's code as I got in my original code shown in the beginning of this thread.

The camera is again passing through the wall when the player pan rotates left close to a wall and its back starts facing the wall while turning, until it gets to about center, and then moves back inside the wall like it should for the remainder of the turn.

Last edited by Ruben; 02/24/18 09:30.