UPhysicsConstraintComponent::SetAngularDriveMode

Switches the angular drive mode between SLERP and Twist And Swing

Windows
MacOS
Linux

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

Syntax

void SetAngularDriveMode
(
    EAngularDriveMode::Type DriveMode
)

Remarks

Switches the angular drive mode between SLERP and Twist And Swing

Parameters

Parameter

Description

DriveMode

The angular drive mode to use. SLERP uses shortest spherical path, but will not work if any angular constraints are locked. Twist and Swing decomposes the path into the different angular degrees of freedom but may experience gimbal lock

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss