Floating Pawn Movement staying on the ground

Hey !

I am using the Floating Pawn Movement component for my pawns but as the name suggests it “floats” and does not have gravity, which makes my pawns going up in the air for some reason when they are colliding/attacking. Here is a preview of the problem :
flyingpawns

My question is how can I make my pawns stay on the ground no matter what ?

when your Units move, take damage or attack (don’t use a tick for that!)… do a Line Trace by channel for “visible” and set their Z location to the Hit.Z Location.

maybe, you need to give your units a different base channel to avoid them getting traced by the visible-channel (since you want to trace for the ground, not other Units)…

When you float you could follow with a small amount of negative Z force “Add Force node” “per tick”, which would use physics to accelerate down based on settings for Max Acceleration in the Caracter Movement Component.