PhysicsConstraint - Linear Limit Issue with BP Actor

I’m having an issue with Limits on a PhysicsConstraintActor. I have a mine cart that I want to be constrained to a certain length of track, but the cart seems to stop 3/4 of the way. How can I constrain with Limits only in one direction and not from the PhysicsConstraintActor’s center?

I’m not even sure I’m explaining that well.

Hi there,

I’m sure you’ve solved this already, but perhaps someone else will stumble upon this post with the same issue.

The constraint ranges between its position and the limit value that you set. In the beginning, you are setting a limit value that makes the cart become outside of the constraint’s range. The physics solver will then try its best to move the cart so that it comes into range again. But when the cart has moved to the constraint’s position and you set the limit to a negative value, the cart will not move because it is within the range of the constraint.

So one way of solving this would be disable to limit on the constraint and then add a linear motor to the cart to make it move. You can then set the values of the motor via blueprints to make it move as you wish.