bScaleWorldWithDynamicPivot
bScaleWorldWithDynamicPivot
#Overview
name: bScaleWorldWithDynamicPivot
The value of this variable can be defined or overridden in .ini config files. 1
.ini config file referencing this setting variable.
It is referenced in 2
C++ source files.
#Summary
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Config/BaseEditorSettings.ini:58, section: [/Script/VREditor.VRModeSettings]
- INI Section:
/Script/VREditor.VRModeSettings
- Raw value:
True
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Editor/ViewportInteraction/Private/ViewportWorldInteraction.cpp:1819
Scope (from outer to inner):
file
function BEGIN_FUNCTION_BUILD_OPTIMIZATION void UViewportWorldInteraction::UpdateDragging
Source code excerpt:
const double TotalDistance = LineStartDistance + LineEndDistance;
double LineStartToEndActivityWeight = 0.5f; // Default to right in the center, if no distance moved yet.
if (GetDefault<UVISettings>()->bScaleWorldWithDynamicPivot && !FMath::IsNearlyZero( TotalDistance ) ) // Avoid division by zero
{
LineStartToEndActivityWeight = LineStartDistance / TotalDistance;
}
PivotLocation = FMath::Lerp( LastLineStart, LastLineEnd, LineStartToEndActivityWeight );
bHasPivotLocation = true;
#Loc: <Workspace>/Engine/Source/Editor/ViewportInteraction/Public/VISettings.h:29
Scope (from outer to inner):
file
class class UVISettings : public UObject
Source code excerpt:
/** Whether to compute a new center point for scaling relative from by looking at how far either controller moved relative to the last frame */
UPROPERTY(EditAnywhere, config, Category = "World Movement")
uint32 bScaleWorldWithDynamicPivot : 1;
/** When enabled, you can freely rotate and scale the world with two hands at the same time. Otherwise, we'll detect whether to rotate or scale depending on how much of either gesture you initially perform. */
UPROPERTY(EditAnywhere, config, Category = "World Movement")
uint32 bAllowSimultaneousWorldScalingAndRotation : 1;
};