Benefits for the observer pattern

Being able to separate the logic between cameraraycaster and playermovement/cameraffordance will allow us to build on the system with minimal effort or refactoring, we can add in new features simply by calling the subject and finding out what we need, when we need it. This not only cuts down on the calls to our raycaster, but it means we can do a slew of new features without having to heavily modify the other systems, they can work independently but together.

Privacy & Terms