16 auto WalkerController = ABFL::MakeGenericDefinition(
20 WalkerController.Class = AWalkerAIController::StaticClass();
21 return { WalkerController };
28 auto *World = GetWorld();
31 UE_LOG(LogCarla, Error, TEXT(
"AAIControllerFactory: cannot spawn controller into an empty world."));
35 FActorSpawnParameters SpawnParameters;
36 SpawnParameters.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AlwaysSpawn;
39 if (Controller ==
nullptr)
41 UE_LOG(LogCarla, Error, TEXT(
"AAIControllerFactory: spawn controller failed."));
TArray< FActorDefinition > GetDefinitions() final
Retrieve the list of actor definitions that this class is able to spawn.
TSubclassOf< AActor > Class
Class of the actor to be spawned.
A description of a Carla Actor with all its variation.
FActorSpawnResult SpawnActor(const FTransform &SpawnAtTransform, const FActorDescription &ActorDescription) final
Spawn an actor based on ActorDescription and Transform.
Result of an actor spawn function.
geom::Transform Transform