How do I get actor velocity before the collision triggering NotifyHit?
When I override the NotifyHit in my custom character class and have it print out the character's GetVelocity() it is the velocity after the collision.
To verify this I shot one character downward onto the top of another character. The falling character's velocity in the XY plane was negligible and it had moving very quickly in the -Z direction, however when NotifyHit prints the velocity it consistently has a positive Z and movement in the XY plane of a comparable size to the Z movement, clearly being the velocity after the character has bounced off the character.
I need to get the velocity of the falling character immediately before the collision and I would like to not to have to keep an FVector that I update every frame. Am I hooking into the wrong function? How can I do this cleanly?
Follow this question
Once you sign in you will be able to subscribe for any updates here