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 parametersPhysicsHandle->SetTargetLocation(PlayerViewPointLocation + PlayerViewPointRotation.Vector() * Reach);
}