diff --git a/Source/RWTHVRToolkit/Public/Pawn/BasicVRInteractionComponent.h b/Source/RWTHVRToolkit/Public/Pawn/BasicVRInteractionComponent.h index e62fbf21485da813efa4317cd553169af4beb7a0..7d068cf42495292950d01cc87236b63a7e1b06e7 100644 --- a/Source/RWTHVRToolkit/Public/Pawn/BasicVRInteractionComponent.h +++ b/Source/RWTHVRToolkit/Public/Pawn/BasicVRInteractionComponent.h @@ -48,6 +48,8 @@ public: UFUNCTION(BlueprintCallable, BlueprintPure) USceneComponent* GetInteractionRayEmitter() const { return InteractionRayEmitter; } UFUNCTION(BlueprintCallable) void SetInteractionRayVisibility(EInteractionRayVisibility NewVisibility); +protected: + UPROPERTY(EditAnywhere) UStaticMeshComponent* InteractionRay = nullptr; private: /* Holding a reference to the actor that is currently being grabbed */ UPROPERTY() AActor* GrabbedActor; @@ -55,7 +57,7 @@ private: UPROPERTY() UPrimitiveComponent* ComponentSimulatingPhysics = nullptr; UPROPERTY() UGrabbingBehaviorComponent* Behavior = nullptr; UPROPERTY() USceneComponent* InteractionRayEmitter = nullptr; - UPROPERTY() UStaticMeshComponent* InteractionRay = nullptr; + /* Stores the reference of the Actor that was hit in the last frame*/ UPROPERTY() AActor* LastActorHit = nullptr;