FAsyncCollisionReceiver

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.

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

(
    FCollisionConstraints& InCollision...
)

Functions

Name Description

Public function

void

 

ProcessCollisions()

Add received collisions to the container (on physics thread)

Public function

void

 

ReceiveCollisions

(
    const FCollisionConstraintsArray& ...
)

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

Typedefs

Name

Description

FCollisionConstraints

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