Navigation
Unreal Engine C++ API Reference > Runtime > Engine > PhysicsEngine > UPhysicsConstraintComponent
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsConstraintComponent.h |
Include | #include "PhysicsEngine/PhysicsConstraintComponent.h" |
Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/PhysicsConstraintComponent.cpp |
void SetAngularVelocityDriveTwistAndSwing
&40;
bool bEnableTwistDrive,
bool bEnableSwingDrive
&41;
Remarks
Enables/Disables angular velocity twist and swing drive. Only relevant if the AngularDriveMode is set to Twist and Swing
Parameters
Name | Description |
---|---|
bEnableSwingDrive | Indicates whether the drive for the swing axis should be enabled. Only relevant if the AngularDriveMode is set to Twist and Swing |
bEnableTwistDrive | Indicates whether the drive for the twist axis should be enabled. Only relevant if the AngularDriveMode is set to Twist and Swing |