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

Added property to MCPawn

parent b060a9d1
Branches dev/5.5
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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) {
......
......@@ -28,6 +28,8 @@ public:
bool UseKneeAsFoot;
bool ShowDeviceModels = true;
UPROPERTY(BlueprintReadOnly)
FSensorSetup SensorSetup;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment