FAsyncCollisionReceiver

Consumes lists of contacts generated by an [FCollisionDetector](API\Runtime\Chaos\Chaos\Collision\FCollisionDetector) (which may be on a separate thread) and then adds the contacts to the CollisionConstraints in a thread-safe way.

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Collision/CollisionReceiver.h

Include

#include "Chaos/Collision/CollisionReceiver.h"

Syntax

class FAsyncCollisionReceiver

Remarks

Consumes lists of contacts generated by an FCollisionDetector (which may be on a separate thread) and then adds the contacts to the CollisionConstraints in a thread-safe way.

Constructors

Name Description

Public function

FAsyncCollisionReceiver

(
    FPBDCollisionConstraints& InCollis...,
    FEvolutionResimCache* InResimC...
)

Functions

Name Description

Public function

void

 

AppendCollisions

(
    const FCollisionConstraintsArray& ...,
    int32 EntryIndex
)

Called by a CollisionDetector (possibly in a task) when it wants to append extra collisions to an entry.

Public function Const

int32

 

CacheNum()

Public function

void

 

Prepare

(
    int32 NumMaxParticles
)

Public function

void

 

ProcessCollisions()

Add received collisions to the container (on physics thread)

Public function

void

 

ReceiveCollisions

(
    FCollisionConstraintsArray&& Const...,
    int32 EntryIndex
)

Called by a CollisionDetector (possibly in a task) when it finds collisions.

Classes

Name

Description

Public struct

FPerParticleData

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss