[Unreal Engine][C++] How to create a custom CharacterMovementComponent A Custom Character Movement Component Used Unreal Engine Version: 4.22 Since the Unreal Engine Wiki is somewhat outdated in specific areas and I am not allowed to edit there, because they are working on a new one, I spare you the hassle to figure it out for yourself and present to you: the custom character movement component :D If you want a character that supports more movement types, you have to extend character movement component. Here is how to do it: First, create a new class inheriting from UCharacterMovementComponent : // MainCharacterMovementComponent.h UCLASS ( ) class MYGAME_API UMainCharacterMovementComponent : public UCharacterMovementComponent { GENERATED_BODY ( ) public : UMainCharacterMovementComponent ( const FObjectInitializer & ObjectInitializer ) ; protected : virtual void InitializeComponent ( ) override ; virtual void TickCompone...
A web log about game development, linux, video game consoles and more.