// Устанавливаем значения отклонения и тангажа для события
event.setYaw(matrix[0]);
event.setPitch(matrix[1]);
// Сохраняем значения отклонения и тангажа в переменных
float yaw = matrix[0];
float pitch = matrix[1];
// Устанавливаем renderYawOffset, RotationYawHead и RotationPitchHead для игрока
mc.player.renderYawOffset = yaw;
mc.player.rotationYawHead = yaw;
mc.player.rotationPitchHead = pitch;