Skip to content
Snippets Groups Projects
Commit ac899d53 authored by Sebastian Pape's avatar Sebastian Pape
Browse files

Removing collision from meshes

parent 0ef73b0b
No related branches found
No related tags found
1 merge request!45Fixing a null_ptr error if the used pawn was not an AVirtualRealityPawn....
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "Components/StaticMeshComponent.h" #include "Components/StaticMeshComponent.h"
#include "Materials/MaterialInstanceDynamic.h" #include "Materials/MaterialInstanceDynamic.h"
#include "Components/DisplayClusterSceneComponent.h" #include "Components/DisplayClusterSceneComponent.h"
#include "Engine/CollisionProfile.h"
#include "Utility/VirtualRealityUtilities.h" #include "Utility/VirtualRealityUtilities.h"
DEFINE_LOG_CATEGORY(LogCAVEOverlay); DEFINE_LOG_CATEGORY(LogCAVEOverlay);
...@@ -28,6 +29,7 @@ UStaticMeshComponent* ACAVEOverlayController::CreateMeshComponent(const FName& N ...@@ -28,6 +29,7 @@ UStaticMeshComponent* ACAVEOverlayController::CreateMeshComponent(const FName& N
Result->SetStaticMesh(Mesh); Result->SetStaticMesh(Mesh);
Result->SetupAttachment(Parent); Result->SetupAttachment(Parent);
Result->SetVisibility(false); Result->SetVisibility(false);
Result->SetCollisionProfileName(UCollisionProfile::NoCollision_ProfileName);
return Result; return Result;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment