At the moment the third-person camera is just a fixed distance away from the player's head. However, this leads to the camera being able to go inside blocks. We should be able to reuse the block ray tracing code in Game.getTargetedBlock to determine a safe distance to place the camera (just by pulling that code out into a more generic function where you can plug in whatever rays and distances you require).
At the moment the third-person camera is just a fixed distance away from the player's head. However, this leads to the camera being able to go inside blocks. We should be able to reuse the block ray tracing code in
Game.getTargetedBlock
to determine a safe distance to place the camera (just by pulling that code out into a more generic function where you can plug in whatever rays and distances you require).