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:
Example:
Hope this solves your problem! Let me know
@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.