I have got physics constraint components working as expected for actors placed at arbitrary angles by integrating the following master commit into our local engine:
Now everything works great and I can rotate + scale dumpsters into a level and it all works as expected. The lids flap around within the angular constraints I have defined.
However, if I try and move a dumpster into an always-loaded sub-level, the constraint doesn’t initialize properly again. I took a look through the master branch to see if there was a related fix, but nothing showed up.
Here’s a video showing the dumpster blueprint setup (3 static meshes + 2 physics constraints) and demonstrating the dumpsters working in the main level, and not working in the sub-level:
I was able to reproduce what you are seeing and I have entered it as JIRA UE-6186 in out tracking software. Our developers will be looking into it further.
As for a workaround, I don’t have one for you right now. It only happens in an Always Loaded level. If the level is streamed in instead it works correctly. It’s very strange behavior.
Is there an update on this issue? My team has run into a similar issue. When actors using the Physics Constraint Component are in the persistent level they behave fine (see the box on the right in the attached image), but when in a sub level the pivot and swing behaviors act bizarrely (see the box on the left).
As of 4.12.1 this isn’t fixed. Do you think it will make it in a later version of 4.12? Is there a possible work around yet? Sorry to ask so many questions but physics constraints are effectively useless right now.
Hi sandford87, the workaround we used is to simply place the objects in the main level rather than in a sublevel. Not a pretty solution (especially for organisation and reusability), but at some point we had to ship our game. I assure you this wasn’t the dirtiest hack we made, haha.
Change " ‘Always Loaded’ level" to “load streaming level” in blueprint". Some of the constraints will work, some of them not. In standalone is always worse.