A shaking camera can be caused either by a bad adjusted movement code, or by a bad position of the bounding box - make sure that the entity's origin coordinate is really at its center. The usual mistake is an origin at or below the entity's feet.