FConstraintInstance ueses bitfield packing for initializing some values. However, this seems to not work at all. (Honestly, I don’t have a clue about what it actually even does, but…) Whereas Swing-values all get their value overriden in the constructor of FConstraintInstance, bLinearBreakable and bAngularBreakable are not initialized in the constructor and randomly switch between true and false, leading to constraints that randomly work and randomly just fall apart.
Quick Fix: Just initialize the values manually with
FConstraintInstance instance;
instance.bLinearBreakable = true/false;
instance.bAngularBreakable = true/false;
Greetings,
PS.:I wrote the Title as a bug question so other people are more likely to find this thread with googleing their issue)
PPS.: How many Bug Fixes does it take to become a Engine Contributor? :rolleyes:
PPPS.: I already wrote a bug-report to the answerHub, so no need for anyone to do it
PPPPS.: I’m happy… 4 days of work finally pay off