Agrarsense
BoundsVisualizerComponent.h
Go to the documentation of this file.
1// Copyright (c) 2023 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6// MyMeshComponent.h
7
8#pragma once
9
10#include "CoreMinimal.h"
11#include "Components/StaticMeshComponent.h"
12
13#include "BoundsVisualizerComponent.generated.h"
14
15/*
16* Sphere and Cube "bounds" visualization component.
17* Used by OverlapSensor to visualize the overlap area.
18*/
19UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
20class AGRARSENSE_API UBoundsVisualizerComponent : public UStaticMeshComponent
21{
22 GENERATED_BODY()
23
24public:
25
26 UBoundsVisualizerComponent();
27
28 virtual void BeginPlay() override;
29
30 void SetSphereMesh();
31
32 void SetCubeMesh();
33};