Description

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;
}
Steps to Reproduce

Try using SetAngularVelocityDrive and SetAngularOrientationDrive and check that twist and swing both work as expected.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Simulation - Physics
Affects Versions4.13
Target Fix4.14
Fix Commit3132795
Main Commit3136620
CreatedSep 6, 2016
ResolvedSep 20, 2016
UpdatedApr 27, 2018