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 detect when walker enters vehicle "safe zone",
18* And vehicle to detect if vehicle gets close to a tree (ISM instance)
19* and spawns instance back to original Actor.
20*/
21UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
22class AGRARSENSE_API UBoundsVisualizerComponent : public UStaticMeshComponent
23{
24 GENERATED_BODY()
25
26public:
27
28 UBoundsVisualizerComponent();
29
30 virtual void BeginPlay() override;
31
32 void SetSphereMesh();
33
34 void SetCubeMesh();
35};