How can I get the half Height of the other actor's(or pawn) capsule collision?

I’m making a simple platformer and I want to calculate if the enemy’s head is under the player’s feet.

in order to do that, when I collide with an enemy, I need to get the half Height value of the enemy’s capsule collision.

Is there a way to get this value?

Hello!
You could try to do the following:

  1. Get the bounds of the capsule component.
  2. Split the Box extend pin and get the Z value.
  3. Divide that value by 2

Example:

Hope this solves your problem! Let me know :slight_smile:

@PurrPaw. Thank you for the answer.
I actually found a way to retrieve it.
1- event hit (other) → getcomponent(capsule component)->get half height. This solved the problem.