This study investigates the relationship between teachers' use of computer simulations in whole-class physics teaching and the attitudes and learning goals of both teachers and students. It finds that a teaching approach resembling the inquiry cycle enhances student-centered learning and increases students' insight and motivation regarding computer simulations. The conclusions emphasize the importance of aligning teaching methods with inquiry-based learning to improve educational outcomes.