My If wants a pointer for PhysicsHandle

error im getting:

Severity Code Description Project File Line Suppression State
Error C3867 ‘UPhysicsHandleComponent::GrabComponentAtLocation’: non-standard syntax; use ‘&’ to create a pointer to member EscapeTheRoom D:\repos\Udemy\FourCorners2\EscapeTheRoom\Source\EscapeTheRoom\Grabber.cpp 56

my code:

// if the physics handled is attached
// move the object held
if (PhysicsHandle->GrabComponentAtLocation)
{
GetWorld()->GetFirstPlayerController()->GetPlayerViewPoint(OUT PlayerViewPointLocation, OUT PlayerViewPointRotation);
//setup query parameters

  PhysicsHandle->SetTargetLocation(PlayerViewPointLocation + PlayerViewPointRotation.Vector() * Reach);

}

FUUUUUUUUUUUUUUUUUU

GRABBED

GRABBED

GRABBED

GGGRRRAAABBBBEEEDDDDDDDDDD

-_-

thats 20 minutes im never getting back…

I must have watched that part 20 times too.

Privacy & Terms