Hey guys as the name suggests I am unable to add the “UPhysicsHandleComponent” into the Grabber.h. When I do it says no reference found, when I add include “PhysicsEngine/PhysicsHandleComponent.h” to try and fix that I get a whole bunch of errors in the Grabber.cpp saying "name followd by ‘::’ must be a class or namespace name. It’s like it no longer recognizes the Grabber.h file
here is the grabber.h code
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include “CoreMinimal.h”
#include “Components/ActorComponent.h”
#include “Grabber.generated.h”
#include “PhysicsEngine/PhysicsHandleComponent.h”
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class BUILDINGESCAPE_API UGrabber : public UActorComponent
{
GENERATED_BODY()
public:
// Sets default values for this component’s properties
UGrabber();
// Called when the game starts
virtual void BeginPlay() override;
// Called every frame
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
private:
// How far ahead of the player can we reach in CM
float Reach = 100.f;
UPhysicsHandleComponent* PhysicsHandle = nullptr;
};