Physics Constraint linear vs angular limitations

Hi there,

not sure if this applies as a bug, maybe more like a missing enhancement:

I was wondering why a PhysicsConstraint is missing linear motion limits (Linear Limit Size) for every axis, since the angular motion has it (Swing 1Limit Angle, Twist Limit Angle etc.).

Also there is no offset for the linear motion, angular motion has Angular Rotation Offset. Meaning every constraint will be able to move forwards and backwards, One cannot directly set a motion only in one direction.

Thanks!

2 Likes

Hi ionbordura,

Thank you for the feedback. I entered the feature request (JIRA UE-33249) to add Linear Limit Size for all axis and (JIRA UE-33253) to add Linear Limit Offset functionality. We will post back here with questions or comments if we have them.

Cheers,

TJ

Hi Tj,

could you add another related feature request for me :slight_smile: ? Or hopefully point me to the code part which I might be missing.

I would like to get the current positions of some linear constraints, however I see one can only access the positions for angular constraints:
GetCurrentSwing1() , GetCurrentSwing2(), GetCurrentTwist() link text

I could not find anything for linear constraints. Thanks!

Sorry for the delay.

To clarify, are you looking to get the position of the constrained object or the Linear Limits for X,Y,Z of the physics constraint?

Yes, in a way. I can get the position of the constrained objects and then compute their relative positions from the constraint. However, it would be nicer if I could get this directly from the constraint. This can be done for the angular ones with the above mentioned methods.

Edit. So, a combination of what you asked to be clarified: The positon of the constrained object relative to the linear limits of the constraint. (e.g. if the object is allowed to move between -1 and 1, then I would like to know the current position between these two limits)

Thanks for clarifying. I added it as feature request JIRA UE-35476. You can follow that link to our new public bug tracker to vote and see the status.

I also updated the other 2 feature request above with public tracker links as well.

Hi TJ,

it seems the public bug trackers have been removed for this, will there be no plan to add linear constraints the same features as with the angular constraints?

Still missing in UE 4.25.3 . While this does seem to be an important feature.
I need to set a limit in a single direction (think of moving a tray in a drawer) without having to depend on glitchy collision in the direction it shouldn’t even be able to move in. Any news?

1 Like

in 2024 still missing and the issues closed, I’m here still wishing they were added! :frowning: