From 7a7fbd956e8cc12dcc951c992c5419998d132f2c Mon Sep 17 00:00:00 2001 From: jehret <ehret@vr.rwth-aachen.de> Date: Wed, 30 Aug 2023 16:42:14 +0200 Subject: [PATCH] make the ray mesh component accesible --- .../RWTHVRToolkit/Public/Pawn/BasicVRInteractionComponent.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/RWTHVRToolkit/Public/Pawn/BasicVRInteractionComponent.h b/Source/RWTHVRToolkit/Public/Pawn/BasicVRInteractionComponent.h index e62fbf21..7d068cf4 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; -- GitLab