# Gravity direction

**URL:** <https://forums.unrealengine.com/t/gravity-direction/1412749>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint\
**Created:** [November 22, 2023, 7:52pm UTC](https://forums.unrealengine.com/t/gravity-direction/1412749 "2023-11-22T19:52:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saw9yer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Saw9yer](https://forums.unrealengine.com/u/Saw9yer)\
**Post date:** [November 22, 2023, 7:52pm UTC](https://forums.unrealengine.com/t/gravity-direction/1412749/1 "2023-11-22T19:52:25Z")

</div>

Hello everyone,

I try to make my character move on walls and roof (as in manifold garden).  
However it’s a bit tricky with the character movement component.  
I assume it’s because his purpose is to use gravity on Z axis.

In my character movement component i can see there is a line called Gravity direction, Z is set to -1, but i can’t modifiy X, Y or Z.  
in blueprint i can get gravity direction but i can’t find a way to set it.

Can someone help me?

---

<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 22, 2023, 9:12pm UTC](https://forums.unrealengine.com/t/gravity-direction/1412749/2 "2023-11-22T21:12:59Z")

</div>

> [@5.3 Default Character Movement Controller Gravity Direction Greyed Out](https://forums.unrealengine.com/t/5-3-default-character-movement-controller-gravity-direction-greyed-out/1356641/2):
>
> Make a custom movement component that extends character movement component and add a custom function to override gravity // 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(BlueprintC…
