Physics constraints like the hinge, or the prismatic will extend past the limits by a certain amount. About 0.02 for prismatic, and about 1 degree for hinges.
Expected behavior
I expect constraints not to overshoot their limits. especially by such a wide margin on the hinges.
Hi @GregTame from looking at your reproduction place, it seems like you’re trying to use the cylindrical constraint to lock the non-anchored body into an orientation and a position using the limits (all set to zero). The limits features of constraints are not really designed to do this. The upper and lower values are meant to be distinct. To do what I think you are trying to accomplish use a combination of AlignPosition and AlignOrientation. That should do the trick.
Well it overshoots even if you have distinct amounts.
which I realize I can compensate for by setting the actual limit to the desired limit minus that margin.
as for the use, I’m trying to simulate a Bolt in a bolt action rifle, and there are times, depending on the bolt’s position that either its rotation is locked, or it’s not able to travel. but i still need that rigid connection that the AlignPositions simply don’t offer.
@GregTame Thanks for clarifying. I’ve put this into our creator bug queue and upped the priority. I’ve assigned an engineer to look at it as part of our regular creator bug schedule. They will get back to you.