Skip to content
Snippets Groups Projects
Commit f46597bc authored by Patrick Nossol's avatar Patrick Nossol
Browse files

Added property to MCPawn

parent b060a9d1
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ LowerArm = 26.0 ...@@ -12,7 +12,7 @@ LowerArm = 26.0
//D - Distance from floor to hip //D - Distance from floor to hip
HipHeight = 102.0 HipHeight = 102.0
//E - Height from Hipbones to top of shoulders //E - Height from hipbones to top of shoulders
NeckToHip = 50.5 NeckToHip = 50.5
//F - Height from top of shoulders to slidely under the mouth //F - Height from top of shoulders to slidely under the mouth
......
...@@ -82,8 +82,7 @@ AMCPawn::AMCPawn(const FObjectInitializer& ObjectInitializer) ...@@ -82,8 +82,7 @@ AMCPawn::AMCPawn(const FObjectInitializer& ObjectInitializer)
void AMCPawn::BeginPlay() { void AMCPawn::BeginPlay() {
Super::BeginPlay(); Super::BeginPlay();
bool show = true; if (ShowDeviceModels) {
if (show) {
SensorSetup.HandL.ControllerComponent->SetShowDeviceModel(true); SensorSetup.HandL.ControllerComponent->SetShowDeviceModel(true);
SensorSetup.HandR.ControllerComponent->SetShowDeviceModel(true); SensorSetup.HandR.ControllerComponent->SetShowDeviceModel(true);
for (FSensor& Tracker : SensorSetup.Trackers) { for (FSensor& Tracker : SensorSetup.Trackers) {
......
...@@ -28,6 +28,8 @@ public: ...@@ -28,6 +28,8 @@ public:
bool UseKneeAsFoot; bool UseKneeAsFoot;
bool ShowDeviceModels = true;
UPROPERTY(BlueprintReadOnly) UPROPERTY(BlueprintReadOnly)
FSensorSetup SensorSetup; FSensorSetup SensorSetup;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment