NVIDIA DeepLearning Dataset Synthesizer (NDDS)
 All Classes Namespaces Functions Variables Typedefs Pages
RandomLookAtComponent.h
1 /*
2 * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
3 *
4 * NVIDIA CORPORATION and its licensors retain all intellectual property
5 * and proprietary rights in and to this software, related documentation
6 * and any modifications thereto. Any use, reproduction, disclosure or
7 * distribution of this software and related documentation without an express
8 * license agreement from NVIDIA CORPORATION is strictly prohibited.
9 */
10 
11 #pragma once
12 
13 #include "DomainRandomizationDNNPCH.h"
14 #include "RandomComponentBase.h"
15 #include "RandomLookAtComponent.generated.h"
16 
17 /// @cond DOXYGEN_SUPPRESSED_CODE
18 UCLASS(Blueprintable, ClassGroup = (NVIDIA), meta = (BlueprintSpawnableComponent))
19 /// @endcond DOXYGEN_SUPPRESSED_CODE
20 class DOMAINRANDOMIZATIONDNN_API URandomLookAtComponent : public URandomComponentBase
21 {
22  GENERATED_BODY()
23 
24 public:
26 
27 protected: // Editor properties
28  // List of the focal actor to choose from
29  UPROPERTY(EditAnywhere, Category = "Randomization")
30  TArray<AActor*> FocalTargetActors;
31 
32  // How fast (degree per seconds) the actor rotate when it need to change direction
33  UPROPERTY(EditAnywhere, Category = "Randomization")
34  float RotationSpeed;
35 
36 protected:
37  virtual void BeginPlay() override;
38  virtual void OnRandomization_Implementation() override;
39  virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
40 
41 protected:
42  UPROPERTY(Transient)
43  AActor* CurrentFocalTarget;
44 };