Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FContactPairModifier
Description
Add a new contact point. WorldPos0 and WorldPos1 are the world-space contact positions on each particle. WorldNormal is the contact normal. The contact separation is implicitly (WorldPos0 - WorldPos1).WorldNormal. If WorldPos0 and WorldPos1 are not aligned along WorldNormal, then friction will be applied to attempt to correct the tangential separation.
| Name | AddContact |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ContactModification.h |
| Include Path | #include "Chaos/ContactModification.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/ContactModification.cpp |
int32 AddContact
(
const FVec3 & WorldPos0,
const FVec3 & WorldPos1,
const FVec3 & WorldNormal
) const