Hi,
Here’s another problem that I can’t solve or see any example.
I implemented a double jump function which allows you tu double jump only if you are near a wall. I created a CaspuleCollision which overlaps when you are near a wall.
I want to add an impulse to the character when I do the second jump like if the wall as a “repulsive” effect.
Here is the code that I used :
GetCharacterMovement()->Velocity += Fvector(0, 200, 0);
OR
FVector impulse = FVector(0, 200, 0);
GetCharacterMovement()->AddImpulse(impulse, true);
But it this case, the vector that I add use the World where I want to use the Character’s Vector, so the effect works only in 1 direction.
So how can I apply a relative velocity or is there an other way to make a “repulsive” wall ?
Lokking forward for answers, thanks !