Skip to content
Snippets Groups Projects
Commit d738261e authored by Daniel Rupp's avatar Daniel Rupp
Browse files

removed debug logs

parent cc0f3d56
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,6 @@ UPrimitiveComponent* UOnClickGrabBehavior::GetHighestParentSimulatingPhysics(UPr
void UOnClickGrabBehavior::OnClickStart(USceneComponent* TriggeredComponent, const FInputActionValue& Value)
{
UE_LOG(Toolkit, Error, TEXT("Click Start in On Click Grab"))
const APawn* Player = UGameplayStatics::GetPlayerPawn(GetWorld(), 0);
USceneComponent* Hand = Cast<USceneComponent>(TriggeredComponent->GetAttachParent());
......@@ -75,13 +74,11 @@ void UOnClickGrabBehavior::OnClickStart(USceneComponent* TriggeredComponent, con
MyPhysicsComponent = GetFirstComponentSimulatingPhysics(GetOwner());
if (MyPhysicsComponent) {
UE_LOG(Toolkit, Error, TEXT("Attach to Component phisics comp"))
MyPhysicsComponent->SetSimulatePhysics(false);
MyPhysicsComponent->AttachToComponent(Hand, Rules);
}
else
{
UE_LOG(Toolkit, Error, TEXT("Attach to Component else"))
GetOwner()->GetRootComponent()->AttachToComponent(Hand, Rules);
}
......
......@@ -91,10 +91,8 @@ void URaycastSelectionComponent::SetupInputActions()
void URaycastSelectionComponent::OnBeginSelect(const FInputActionValue& Value)
{
UE_LOG(Toolkit, Error, TEXT("Begin Select"))
if(CurrentRaycastSelectable)
{
UE_LOG(Toolkit, Error, TEXT("Selectable is valid"))
CurrentRaycastSelectable->HandleOnClickStartEvents(this, Value);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment