I thought that might be next 🙂
The problem is just that you are not telling it to stop moving until it has already gone too far. If you want it to stop it from going past 90 degrees, you'll have to detect when it is almost there, and slow it down so that the closer it gets, the slower it goes. Use the difference between the current angle and the target angle to adjust the speed.
You might find this helpful: http://www.iforce2d.net/b2dtut/rotate-to-angle
The problem is just that you are not telling it to stop moving until it has already gone too far. If you want it to stop it from going past 90 degrees, you'll have to detect when it is almost there, and slow it down so that the closer it gets, the slower it goes. Use the difference between the current angle and the target angle to adjust the speed.
You might find this helpful: http://www.iforce2d.net/b2dtut/rotate-to-angle