Something is broken and I'm completely unsure how to tackle this issue

02)

Grabber.cpp: https://pastebin.com/ry1HjMFk
Grabber.h: https://pastebin.com/U93Zv2FP

Issue: Implementing the FindPhysicsHandleComponent constructor (made sure I followed exactly as the video said) causes everything to go out of control. Versioning myself back to the previous state works, so I know the code before following along with this is fine. A multitude of errors appear, with a few of them actually changing entirely upon each build (the amount of errors also varies anywhere between 3 and 11). Manually taking out FindPhysicsHandleComponent entirely does not fix the issue, and similar errors still appear.

void FindPhysicsHandleComponent();
{
    /// Look for attached Physics Handle
    PhysicsHandle = GetOwner()->FindComponentByClass<UPhysicsHandleComponent>();
    if (PhysicsHandle)
    {
        // Physics handle is found
    }
    else
    {
        UE_LOG(LogTemp, Error, TEXT("%s missing physics handle component"), *GetOwner()->GetName())
    }
}

Try removing the semicolon from the first line above.

I’ll give it a go once I’m home. Thanks.

Privacy & Terms