Objects with hight velocity don't overlap properly

Hi

In our project we wants to implement melee combat (swords & co) between character and Npc.

For more juicyness, we try to use some hight velocity animations (for exemple a slash with a 180° sword move have around 3-4 frames hit duration).

With animations at this speed, it happen sometimes that the overlap between the sword and the target character is not detected, and the npc remain undamaged.

We tried to add CCD on the colliders, but it looks to have no effects on overlaps.

On this post, some say CCD don’t works with overlaps, but something similar can be enabled with physics sim PMC, what is it ?

Is there a way to use CCD with overlaps ?

Does we need to detect our hits manually ?

Is there an other way to do this task ?

Thanks

Nico

[Attachment Removed]

Hi Nicolas,

This is an issue for rotation based movement - ie linear is pretty well handled, but even for CCD, we don’t factor in time based rotation - it is snapshotted to save processing.

For something like this - the general process is to gather potential hits greedily (ie do an overlap with a volume encompassing that frame’s movement) and then filter out bodies which don’t hit.

That part is pretty easy - but the filtering would need a bit more info - you you need an exact time of impact/point or just IF it hit at some point that frame?

Best

Geoff Stacey

Developer Relations

EPIC Games

[Attachment Removed]