Box2d static and kinematic rotation problem

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
hi again @irresistible force..

i did what you say about the Angular Velocity and it works good but i notice
that the dynamic box remind in the b2_kinematicBody for a small time and then it run away out the b2_kinematicBody !!

why this occurs ?! the b2_kinematicBody box is close and really i need the Angular Velocity stay to 4.0 and not need to decrease it

how can i fix this ??

any suggestion ??
You don't need to cross-post.

The volume of posts is not that high here, and people can use the "View unread posts" or "View new posts" links so we don't miss messages.

Original thread: https://box2d.org/forum/viewtopic.php?t=7090