Added : Controls for jump and look
This commit is contained in:
parent
8e7ca53d56
commit
1645191a8e
@ -21,18 +21,6 @@
|
||||
"BuildId": "37670630"
|
||||
},
|
||||
"BuildProducts": [
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-LegumeMix.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-LegumeMix.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Binaries/ThirdParty/USD/UsdResources/Win64/plugins/ar/resources/plugInfo.json",
|
||||
"Type": "RequiredResource"
|
||||
@ -2845,50 +2833,6 @@
|
||||
"Path": "$(EngineDir)/Plugins/Animation/LiveLink/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Animation/RigLogic/Binaries/Win64/UnrealEditor-RigLogicDeveloper.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Animation/RigLogic/Binaries/Win64/UnrealEditor-RigLogicEditor.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Animation/RigLogic/Binaries/Win64/UnrealEditor-RigLogicLib.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Animation/RigLogic/Binaries/Win64/UnrealEditor-RigLogicLibTest.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Animation/RigLogic/Binaries/Win64/UnrealEditor-RigLogicModule.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Animation/RigLogic/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Bridge/Binaries/Win64/UnrealEditor-Bridge.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Bridge/Binaries/Win64/UnrealEditor-Bridge.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Bridge/Binaries/Win64/UnrealEditor-MegascansPlugin.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Bridge/Binaries/Win64/UnrealEditor-MegascansPlugin.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Bridge/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Cameras/CameraShakePreviewer/Binaries/Win64/UnrealEditor-CameraShakePreviewer.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
@ -3721,18 +3665,6 @@
|
||||
"Path": "$(EngineDir)/Plugins/Experimental/MeshModelingToolsetExp/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Experimental/MetaHuman/MetaHumanSDK/Binaries/Win64/UnrealEditor-MetaHumanSDKEditor.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Experimental/MetaHuman/MetaHumanSDK/Binaries/Win64/UnrealEditor-MetaHumanSDKRuntime.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Experimental/MetaHuman/MetaHumanSDK/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Experimental/NFORDenoise/Binaries/Win64/UnrealEditor-NFORDenoise.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
@ -3973,14 +3905,6 @@
|
||||
"Path": "$(EngineDir)/Plugins/Marketplace/Developer/RiderLink/Binaries/Win64/UnrealEditor-RiderBlueprint.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Marketplace/Developer/RiderLink/Binaries/Win64/UnrealEditor-RiderDebuggerSupport.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Marketplace/Developer/RiderLink/Binaries/Win64/UnrealEditor-RiderDebuggerSupport.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Marketplace/Developer/RiderLink/Binaries/Win64/UnrealEditor-RiderGameControl.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
@ -4884,13 +4808,21 @@
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/XGEController/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-LegumeMix.dll",
|
||||
"Type": "DynamicLibrary"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor-LegumeMix.pdb",
|
||||
"Type": "SymbolFile"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/Binaries/Win64/UnrealEditor.modules",
|
||||
"Type": "RequiredResource"
|
||||
}
|
||||
],
|
||||
"RuntimeDependencies": [
|
||||
{
|
||||
"Path": "$(ProjectDir)/LegumeMix.uproject",
|
||||
"Type": "UFS"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Binaries/ThirdParty/DbgHelp/dbghelp.dll",
|
||||
"Type": "NonUFS"
|
||||
@ -29907,14 +29839,6 @@
|
||||
"Path": "$(EngineDir)/Plugins/Animation/LiveLink/LiveLink.uplugin",
|
||||
"Type": "UFS"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Animation/RigLogic/RigLogic.uplugin",
|
||||
"Type": "UFS"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Bridge/Bridge.uplugin",
|
||||
"Type": "UFS"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Cameras/CameraShakePreviewer/CameraShakePreviewer.uplugin",
|
||||
"Type": "UFS"
|
||||
@ -30255,10 +30179,6 @@
|
||||
"Path": "$(EngineDir)/Plugins/Experimental/MeshModelingToolsetExp/MeshModelingToolsetExp.uplugin",
|
||||
"Type": "UFS"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Experimental/MetaHuman/MetaHumanSDK/MetaHumanSDK.uplugin",
|
||||
"Type": "UFS"
|
||||
},
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/Experimental/NFORDenoise/NFORDenoise.uplugin",
|
||||
"Type": "UFS"
|
||||
@ -30618,6 +30538,10 @@
|
||||
{
|
||||
"Path": "$(EngineDir)/Plugins/XGEController/XGEController.uplugin",
|
||||
"Type": "UFS"
|
||||
},
|
||||
{
|
||||
"Path": "$(ProjectDir)/LegumeMix.uproject",
|
||||
"Type": "UFS"
|
||||
}
|
||||
],
|
||||
"BuildPlugins": [
|
||||
@ -30649,7 +30573,6 @@
|
||||
"BaseCharacterFXEditor",
|
||||
"BlendSpaceMotionAnalysis",
|
||||
"BlueprintHeaderView",
|
||||
"Bridge",
|
||||
"CLionSourceCodeAccess",
|
||||
"CableComponent",
|
||||
"CameraShakePreviewer",
|
||||
@ -30738,7 +30661,6 @@
|
||||
"MeshModelingToolset",
|
||||
"MeshModelingToolsetExp",
|
||||
"MeshPainting",
|
||||
"MetaHumanSDK",
|
||||
"Metasound",
|
||||
"MobileLauncherProfileWizard",
|
||||
"MobilePatchingUtils",
|
||||
@ -30779,7 +30701,6 @@
|
||||
"ResonanceAudio",
|
||||
"RiderLink",
|
||||
"RiderSourceCodeAccess",
|
||||
"RigLogic",
|
||||
"RigVM",
|
||||
"SQLiteCore",
|
||||
"SequencerAnimTools",
|
||||
|
BIN
Binaries/Win64/UnrealEditor-LegumeMix.exp
(Stored with Git LFS)
BIN
Binaries/Win64/UnrealEditor-LegumeMix.exp
(Stored with Git LFS)
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4bd9e85e6cbd527b51099c9ee1800a227ff79bda18d26ac40b665732b99cbd36
|
||||
size 59527168
|
||||
oid sha256:857367d1cbd5cf6e376a48fdc7e5322bcb5ac0fb89152955790a09ce2bae9bb9
|
||||
size 60223488
|
||||
|
BIN
Content/Legumix/Player/BP_Player.uasset
(Stored with Git LFS)
BIN
Content/Legumix/Player/BP_Player.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Legumix/Player/Input/IMC_Default.uasset
(Stored with Git LFS)
BIN
Content/Legumix/Player/Input/IMC_Default.uasset
(Stored with Git LFS)
Binary file not shown.
@ -4,12 +4,14 @@
|
||||
#include "Player/LMPlayerController.h"
|
||||
#include "EnhancedInputSubsystems.h"
|
||||
#include "EnhancedInputComponent.h"
|
||||
#include "GameFramework/Character.h"
|
||||
|
||||
void ALMPlayerController::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
EnhancedInputSubsystem = GetLocalPlayer()->GetSubsystem<UEnhancedInputLocalPlayerSubsystem>();
|
||||
EnhancedInputSubsystem->AddMappingContext(DefaultMappingContext, 0);
|
||||
LegumixPlayer = Cast<ACharacter>(GetPawn());
|
||||
}
|
||||
|
||||
void ALMPlayerController::SetupInputComponent()
|
||||
@ -17,6 +19,8 @@ void ALMPlayerController::SetupInputComponent()
|
||||
Super::SetupInputComponent();
|
||||
UEnhancedInputComponent* Input = Cast<UEnhancedInputComponent>(InputComponent);
|
||||
Input->BindAction(MoveAction, ETriggerEvent::Triggered, this, &ALMPlayerController::Move);
|
||||
Input->BindAction(JumpAction, ETriggerEvent::Triggered, this, &ALMPlayerController::Jump);
|
||||
Input->BindAction(LookAction, ETriggerEvent::Triggered, this, &ALMPlayerController::Look);
|
||||
}
|
||||
|
||||
void ALMPlayerController::Move(const FInputActionValue& InputValue)
|
||||
@ -25,3 +29,15 @@ void ALMPlayerController::Move(const FInputActionValue& InputValue)
|
||||
GetPawn()->AddMovementInput(GetPawn()->GetActorForwardVector(), VectorDirection.X);
|
||||
GetPawn()->AddMovementInput(GetPawn()->GetActorRightVector(), VectorDirection.Y);
|
||||
}
|
||||
|
||||
void ALMPlayerController::Jump(const FInputActionValue& InputValue)
|
||||
{
|
||||
LegumixPlayer->Jump();
|
||||
}
|
||||
|
||||
void ALMPlayerController::Look(const FInputActionValue& InputValue)
|
||||
{
|
||||
const FVector2d VectorDirection = InputValue.Get<FVector2d>();
|
||||
AddYawInput(VectorDirection.X);
|
||||
AddPitchInput(VectorDirection.Y);
|
||||
}
|
@ -34,8 +34,11 @@ private:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, meta = (AllowPrivateAccess = true))
|
||||
TObjectPtr<UInputAction> JumpAction;
|
||||
|
||||
UPROPERTY(BlueprintReadOnly, meta = (AllowPrivateAccess = true))
|
||||
TObjectPtr<ACharacter> LegumixPlayer;
|
||||
|
||||
virtual void SetupInputComponent() override;
|
||||
void Move(const FInputActionValue& InputValue);
|
||||
|
||||
|
||||
void Jump(const FInputActionValue& InputValue);
|
||||
void Look(const FInputActionValue& InputValue);
|
||||
};
|
||||
|
Reference in New Issue
Block a user