Adapted camera control system from LinearChaosC