From 3e6252a5c2b9d5fbe6cd90486cfe199514cad74f Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Thu, 18 May 2023 19:16:47 +0200 Subject: [PATCH] do not affect collision when grab/release --- Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp index b7bf9766..ccdf8155 100644 --- a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp +++ b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp @@ -1411,7 +1411,6 @@ void ASGPawn::FImpl::DisableActorPhysics(const AActor* Actor) const { PrimitiveComponent->SetEnableGravity(false); PrimitiveComponent->SetSimulatePhysics(false); - PrimitiveComponent->SetCollisionEnabled(ECollisionEnabled::NoCollision); } } } @@ -1427,7 +1426,6 @@ void ASGPawn::FImpl::EnableActorPhysics(const AActor* Actor) const { PrimitiveComponent->SetEnableGravity(true); PrimitiveComponent->SetSimulatePhysics(true); - PrimitiveComponent->SetCollisionEnabled(ECollisionEnabled::QueryAndPhysics); } } }