# 5.3 Default Character Movement Controller Gravity Direction Greyed Out

**URL:** <https://forums.unrealengine.com/t/5-3-default-character-movement-controller-gravity-direction-greyed-out/1356641>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [November 1, 2023, 9:51pm UTC](https://forums.unrealengine.com/t/5-3-default-character-movement-controller-gravity-direction-greyed-out/1356641 "2023-11-01T21:51:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReloKai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReloKai](https://forums.unrealengine.com/u/ReloKai)\
**Post date:** [November 1, 2023, 9:51pm UTC](https://forums.unrealengine.com/t/5-3-default-character-movement-controller-gravity-direction-greyed-out/1356641/1 "2023-11-01T21:51:52Z")

</div>

I’ve been making a game with wall running in UE 5.2, and while I haven’t been using custom gravity so far, I have seen that other people make/use whole new Character Controllers to make wall running happen. Today I booted up 5.3 for the first time and saw this in the default CharacterMovementController in my player character:

 ![Screenshot (157)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/b/1cbf3fd7a33590f4631953d824d9c70cf61ac7ab.png)  
Needless to say I was excited, but after looking through the character movement controller options, and doing a quick look through its C++ code, I can’t find a way to activate it. My question is, is there a way to make this editable, and maybe manipulate it in Blueprint? I’m using the Third Person version of the controller if that makes a difference.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [November 1, 2023, 10:21pm UTC](https://forums.unrealengine.com/t/5-3-default-character-movement-controller-gravity-direction-greyed-out/1356641/2 "2023-11-01T22:21:17Z")

</div>

Make a custom movement component that extends character movement component and add a custom function to override gravity

```auto

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/CharacterMovementComponent.h"
#include "CharacterMovementComponentEX.generated.h"

/**
 * 
 */
UCLASS()
class MYGAMENAME_API UCharacterMovementComponentEX : public UCharacterMovementComponent
{
	GENERATED_BODY()

	UFUNCTION(BlueprintCallable)
	void SetGravDirection(const FVector& GravityDir);
};

```

```auto
// Fill out your copyright notice in the Description page of Project Settings.

#include "CharacterMovementComponentEX.h"

void UCharacterMovementComponentEX::SetGravDirection(const FVector& GravityDir) {
	Super::SetGravityDirection(GravityDir);
}

```

then inside of the character swap out the movement component with the new one

.h

```auto
// needs constructor (eg. class is called AMyCharacter)
AMyCharacter(const FObjectInitializer& ObjectInitializer);

```

cpp

```auto
/* needed include code */
#include "CharacterMovementComponentEX.h"

AMyCharacter::AMyCharacter(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer.SetDefaultSubobjectClass<UCharacterMovementComponentEX>(CharacterMovementComponentName))
{
// rest of your init code here if needed
}

```

With SetGravDirection you should be able to pass in a vector. Just to a cast to the CharacterMovementComponentEX class before calling the function.

 ![fall up](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/a/f9a64f26b663334fdf6008e29173a2954e1cecd1.jpeg)  
 ![fall up 2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/8/148bd37ec767900686ad0910b9c0a7ac5c7dea2d.jpeg)  
 ![fallup3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/3/3432209aee5159ab33e48aa456c6d82605314ca0.png)

---

<div class="post-metadata">

**Author:** ![ReloKai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReloKai](https://forums.unrealengine.com/u/ReloKai)\
**Post date:** [November 2, 2023, 8:32pm UTC](https://forums.unrealengine.com/t/5-3-default-character-movement-controller-gravity-direction-greyed-out/1356641/3 "2023-11-02T20:32:09Z")

</div>

This is awesome! Thanks! I do want to mention that if you have a Blueprint Character, you don’t need to go into C++ to change which controller it uses, you just need to go into your character movement component in your character, and in details, change the dropdown here to your custom character controller:

 ![Screenshot (158)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/7/cc70a57a7eaa165b60b983668dc48b2f5df73953.png)

I also had a little trouble adding a C++ script to a Blueprint project, but I would recommend to anyone who has trouble after adding one to check these out:

[https://www.reddit.com/r/unrealengine/comments/8o7g8q/could\_not\_be\_compiled\_try\_rebuilding\_from\_source/](https://www.reddit.com/r/unrealengine/comments/8o7g8q/could_not_be_compiled_try_rebuilding_from_source/)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/a/b8a4334578d0ef8d701050d4d6eaf0f9c3e2b04e.jpeg "Unreal Project Could Not Be Compiled, Try Re-Building From Source Manually") ](https://www.youtube.com/watch?v=6mFhtvdYQWI)

But otherwise, works like a charm! Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 2, 2023, 8:32pm UTC](https://forums.unrealengine.com/t/5-3-default-character-movement-controller-gravity-direction-greyed-out/1356641/4 "2023-12-02T20:32:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
