diff --git a/Content/Measurements.txt b/Content/Measurements.txt index eacd9d2dfbca4a45802128b5608f7b07ea78431c..856df62bd6bd81195327a106bca8ecf0937e8c70 100644 --- a/Content/Measurements.txt +++ b/Content/Measurements.txt @@ -12,7 +12,7 @@ LowerArm = 26.0 //D - Distance from floor to hip HipHeight = 102.0 -//E - Height from Hipbones to top of shoulders +//E - Height from hipbones to top of shoulders NeckToHip = 50.5 //F - Height from top of shoulders to slidely under the mouth diff --git a/Source/MoCapPlugin/Private/MCPawn.cpp b/Source/MoCapPlugin/Private/MCPawn.cpp index 8c2dcaea9930e97f10bb6d8755e1c0575f18d970..60031f02d7655d75cce7ea439043c2ae3576e188 100644 --- a/Source/MoCapPlugin/Private/MCPawn.cpp +++ b/Source/MoCapPlugin/Private/MCPawn.cpp @@ -82,8 +82,7 @@ AMCPawn::AMCPawn(const FObjectInitializer& ObjectInitializer) void AMCPawn::BeginPlay() { Super::BeginPlay(); - bool show = true; - if (show) { + if (ShowDeviceModels) { SensorSetup.HandL.ControllerComponent->SetShowDeviceModel(true); SensorSetup.HandR.ControllerComponent->SetShowDeviceModel(true); for (FSensor& Tracker : SensorSetup.Trackers) { diff --git a/Source/MoCapPlugin/Public/MCPawn.h b/Source/MoCapPlugin/Public/MCPawn.h index 2a83c6f68bd31e5719a1243fcb2a1e17289f7aa1..e0d1483b1574165dcd8b1d254af0d5d88170e45a 100644 --- a/Source/MoCapPlugin/Public/MCPawn.h +++ b/Source/MoCapPlugin/Public/MCPawn.h @@ -28,6 +28,8 @@ public: bool UseKneeAsFoot; + bool ShowDeviceModels = true; + UPROPERTY(BlueprintReadOnly) FSensorSetup SensorSetup;