XaiJu
CodeLikeMe
CodeLikeMe

patreon


Unreal Engine C++ #6 - Hit Detection

In this episode of unreal engine C++ tutorial series, I am going to show you how to detect if the punch actually hits the opponent's body. Instead of simply using hitboxes, here I am going to implement a way to detect the hits in C++ code using the punching hand location and the bone locations of the other characters body. If the attackers punching hand location is overlapping or close enough to make contact with any of the bones of the victim's body, I am going to consider as a successful hit. This logic will be implemented using C++ code only. If a hit is detecte4d, the opponent will play a hit reaction animation with a grunt sound and a punch landing on body sound.

password=codelikeme_c++

Unreal Engine C++ #6 - Hit Detection

More Creators