My If wants a pointer for PhysicsHandle

urc_s03_using_physics_handles

#1

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);

}


#2

FUUUUUUUUUUUUUUUUUU

GRABBED

GRABBED

GRABBED

GGGRRRAAABBBBEEEDDDDDDDDDD

-_-

thats 20 minutes im never getting back…


#3

I must have watched that part 20 times too.