How to add gravity to pawn with floating pawn movement?

Is there anyway I can make gravity?I mean I tried multiple things but the floating pawn movement component stops me(Because of the speed limit)I thought of adding to the speed limit every time It falls and when It hits the ground,It should set the speed limit to normal again,but I don’t think that will work.

Any Ideas?

No it is not possible, I spent 3 hours in the IRC channel asking, and it seems that pawn movement cannot have this, you’ll need to create your own movement class or use character if you want gravity.

i’ve made it work using a line trace and a “add player location” node.But still thanks for asking around.

You could add this to the start of the tick function of YourPawn.cpp:

void AYourPawn::Tick(float DeltaTime)
{
    FVector GravityAcc = FVector(0.f, 0.f, -1.f) * 5.f;
    const FVector LocalMove = FVector(CurrentForwardSpeed * DeltaTime, 0.f, 0.f) + GravityAcc;

Basically just add Z velocity every tick