You've already forked LuckyWorld
FT - PilotComponent to drive so100
+ Base class for RobotPawn -> might be replaced by an Actor instead?
This commit is contained in:
37
Source/LuckyWorldV2/Public/Robot/RobotPawn.h
Normal file
37
Source/LuckyWorldV2/Public/Robot/RobotPawn.h
Normal file
@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
#include "CoreMinimal.h"
|
||||
#include "SharedDef.h"
|
||||
#include "RobotPawn.generated.h"
|
||||
|
||||
class AMujocoVolumeActor;
|
||||
class URobotPilotComponent;
|
||||
|
||||
// Enum of bots
|
||||
|
||||
UCLASS(Blueprintable)
|
||||
class LUCKYWORLDV2_API ARobotPawn : public APawn // Should be an actor?
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
ARobotPawn();
|
||||
|
||||
virtual void BeginPlay() override;
|
||||
|
||||
// TODO Called by GameInstance after robot has been spawned
|
||||
void InitRobot();
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
ERobotsName RobotType = ERobotsName::None; // This value must be set in the pawn
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite) // TODO Remove UPROPERTY once we migrate physics proxy initialization from Pawn
|
||||
TWeakObjectPtr<AMujocoVolumeActor> PhysicSceneProxy;
|
||||
|
||||
// -------------------
|
||||
// ------ PILOT ------
|
||||
// -------------------
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
URobotPilotComponent* RobotPilotComponent = nullptr;
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void InitPilotComponent(); // This should have Robot type as parameter?
|
||||
};
|
Reference in New Issue
Block a user