In ConstraintDrives.cpp, SetAngularPositionDrive and SetAngularVelocityDrive do not use "InEnableTwistDrive" and instead assign "TwistDrive" to "InEnableSwingDrive".
void FAngularDriveConstraint::SetAngularPositionDrive(bool InEnableSwingDrive, bool InEnableTwistDrive) { SwingDrive.bEnablePositionDrive &= InEnableSwingDrive; TwistDrive.bEnablePositionDrive &= InEnableSwingDrive; } void FAngularDriveConstraint::SetAngularVelocityDrive(bool InEnableSwingDrive, bool InEnableTwistDrive) { SwingDrive.bEnableVelocityDrive &= InEnableSwingDrive; TwistDrive.bEnableVelocityDrive &= InEnableSwingDrive; }
Try using SetAngularVelocityDrive and SetAngularOrientationDrive and check that twist and swing both work as expected.
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Simulation - Physics |
---|---|
Affects Versions | 4.13 |
Target Fix | 4.14 |
Fix Commit | 3132795 |
---|---|
Main Commit | 3136620 |
Created | Sep 6, 2016 |
---|---|
Resolved | Sep 20, 2016 |
Updated | Apr 27, 2018 |