20 UActorComponent* Component =
21 GetComponentByClass(USpringBasedVegetationComponent::StaticClass());
22 USpringBasedVegetationComponent* SpringComponent =
23 Cast<USpringBasedVegetationComponent>(Component);
27 UE_LOG(LogCarla, Error,
28 TEXT(
"ABaseVegetationActor::GetParametersFromComponent Component not found"));
55 TEXT(
"ABaseVegetationActor::GetParametersFromComponent Copy successful"));
60 UActorComponent* Component =
61 GetComponentByClass(USpringBasedVegetationComponent::StaticClass());
62 USpringBasedVegetationComponent* SpringComponent =
63 Cast<USpringBasedVegetationComponent>(Component);
66 UE_LOG(LogCarla, Error, TEXT(
"ABaseVegetationActor::SetParametersToComponent Component not found"));
96 UActorComponent* Component =
97 GetComponentByClass(USpringBasedVegetationComponent::StaticClass());
98 USpringBasedVegetationComponent* SpringComponent =
99 Cast<USpringBasedVegetationComponent>(Component);
100 if (!SpringComponent)
102 UE_LOG(LogCarla, Error, TEXT(
"ABaseVegetationActor::UpdateSkeletonAndParameters Component not found"));
106 SpringComponent->GenerateSkeletonHierarchy();
107 SpringComponent->ComputeSpringStrengthForBranches();