Before in one lecture we tested it out if our if statement is triggered:
if (physicsHandle == nullptr)
UE_LOG(LogTemp, Error, TEXT(“PhycsicsHandle Component could’nt be found, attach it to this object: %s”), *(GetOwner()->GetName()));
I tested it also and it logged correctly the Log out. But now it doesn’t work and if i start the game, the game crashes. Im assuming it’s because were checking
if (PhysicsHandle->GrabbedCompont)
every tick now.
How to fix this?