engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
Chaos::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. 更多...

#include <CollisionReceiver.h>

Public 成员函数

void AppendCollisions (const FCollisionConstraintsArray &Constraints, int32 EntryIndex)
 Called by a CollisionDetector (possibly in a task) when it wants to append extra collisions to an entry. 更多...
 
void ProcessCollisions ()
 Add received collisions to the container (on physics thread)
 
void ReceiveCollisions (FCollisionConstraintsArray &&Constraints, int32 EntryIndex)
 Called by a CollisionDetector (possibly in a task) when it finds collisions. 更多...
 

详细描述

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.

成员函数说明

◆ AppendCollisions()

void Chaos::FAsyncCollisionReceiver::AppendCollisions ( const FCollisionConstraintsArray &  Constraints,
int32  EntryIndex 
)
inline

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

This will be slower than just receiving a full container as above as we will need to expand the array. Make sure when calling append it's after all possible calls to Receive for that particle or the array will be emptied as receive just moves the container into its internal store

◆ ReceiveCollisions()

void Chaos::FAsyncCollisionReceiver::ReceiveCollisions ( FCollisionConstraintsArray &&  Constraints,
int32  EntryIndex 
)
inline

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

This is the whole collection for the provided particle index and it's never used beyond here so we can move the whole container over per particle.


该类的文档由以下文件生成: