do not affect collision when grab/release
This commit is contained in:
@@ -1411,7 +1411,6 @@ void ASGPawn::FImpl::DisableActorPhysics(const AActor* Actor) const
|
|||||||
{
|
{
|
||||||
PrimitiveComponent->SetEnableGravity(false);
|
PrimitiveComponent->SetEnableGravity(false);
|
||||||
PrimitiveComponent->SetSimulatePhysics(false);
|
PrimitiveComponent->SetSimulatePhysics(false);
|
||||||
PrimitiveComponent->SetCollisionEnabled(ECollisionEnabled::NoCollision);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1427,7 +1426,6 @@ void ASGPawn::FImpl::EnableActorPhysics(const AActor* Actor) const
|
|||||||
{
|
{
|
||||||
PrimitiveComponent->SetEnableGravity(true);
|
PrimitiveComponent->SetEnableGravity(true);
|
||||||
PrimitiveComponent->SetSimulatePhysics(true);
|
PrimitiveComponent->SetSimulatePhysics(true);
|
||||||
PrimitiveComponent->SetCollisionEnabled(ECollisionEnabled::QueryAndPhysics);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user