Skip to content
Snippets Groups Projects
Commit 7a7fbd95 authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

make the ray mesh component accesible

parent 68187463
Branches
No related tags found
No related merge requests found
...@@ -48,6 +48,8 @@ public: ...@@ -48,6 +48,8 @@ public:
UFUNCTION(BlueprintCallable, BlueprintPure) USceneComponent* GetInteractionRayEmitter() const { return InteractionRayEmitter; } UFUNCTION(BlueprintCallable, BlueprintPure) USceneComponent* GetInteractionRayEmitter() const { return InteractionRayEmitter; }
UFUNCTION(BlueprintCallable) void SetInteractionRayVisibility(EInteractionRayVisibility NewVisibility); UFUNCTION(BlueprintCallable) void SetInteractionRayVisibility(EInteractionRayVisibility NewVisibility);
protected:
UPROPERTY(EditAnywhere) UStaticMeshComponent* InteractionRay = nullptr;
private: private:
/* Holding a reference to the actor that is currently being grabbed */ /* Holding a reference to the actor that is currently being grabbed */
UPROPERTY() AActor* GrabbedActor; UPROPERTY() AActor* GrabbedActor;
...@@ -55,7 +57,7 @@ private: ...@@ -55,7 +57,7 @@ private:
UPROPERTY() UPrimitiveComponent* ComponentSimulatingPhysics = nullptr; UPROPERTY() UPrimitiveComponent* ComponentSimulatingPhysics = nullptr;
UPROPERTY() UGrabbingBehaviorComponent* Behavior = nullptr; UPROPERTY() UGrabbingBehaviorComponent* Behavior = nullptr;
UPROPERTY() USceneComponent* InteractionRayEmitter = nullptr; UPROPERTY() USceneComponent* InteractionRayEmitter = nullptr;
UPROPERTY() UStaticMeshComponent* InteractionRay = nullptr;
/* Stores the reference of the Actor that was hit in the last frame*/ /* Stores the reference of the Actor that was hit in the last frame*/
UPROPERTY() AActor* LastActorHit = nullptr; UPROPERTY() AActor* LastActorHit = nullptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment