Navigation
API > API/Plugins > API/Plugins/ChaosUserDataPT
A chaos callback object which stores and allows access to user data associated with particles on the physics thread.
Note that FSimCallbackOutput is the output struct - this carries no data because this is a one-way callback. We use it basically just to marshal data in one direction.
| Name | TUserDataManagerPT |
| Type | class |
| Header File | /Engine/Plugins/Experimental/ChaosUserDataPT/Source/ChaosUserDataPT/Public/ChaosUserDataPT.h |
| Include Path | #include "ChaosUserDataPT.h" |
Syntax
template<typename TUserData>
class TUserDataManagerPT : public Chaos::TSimCallbackObject< TUserDataManagerPTInput< TUserData >, FSimCallbackNoOutput, ESimCallbackOptions::PresimulateESimCallbackOptions::ParticleUnregister >
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TUserDataManagerPT() |
ChaosUserDataPT.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TInput | TUserDataManagerPTInput< TUserData > | ChaosUserDataPT.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ClearData_GT
(
const bool bResize |
Clear all data. | ChaosUserDataPT.h | |
const TUserData * GetData_PT
(
const TParticleHandle& Handle |
TParticleHandle is generalized here because it can be FRigidBodyHandle_Internal or FGeometryParticleHandle which have the same api... | ChaosUserDataPT.h | |
bool RemoveData_GT
(
const TParticleHandle& Handle |
Remove user data associated with a particle handle. | ChaosUserDataPT.h | |
bool RemoveData_GT
(
const Chaos::FPhysicsObjectHandle& Object |
ChaosUserDataPT.h | ||
bool SetData_GT
(
const TParticleHandle& Handle, |
Add or update user data associated with a particle handle. | ChaosUserDataPT.h | |
bool SetData_GT
(
const Chaos::FPhysicsObjectHandle& Object, |
ChaosUserDataPT.h | ||
void VisitAllData_PT
(
const TFunction< void(Chaos::FUniqueIdx, const TUserData&)>& Lambda |
Execute a lambda on each data entry. | ChaosUserDataPT.h |
Overridden from ISimCallbackObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FName GetFNameForStatId() |
ChaosUserDataPT.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnParticleUnregistered_Internal
(
TArray< TTuple< FUniqueIdx, FSingleParticlePhysicsProxy* > >& UnregisteredProxies |
ChaosUserDataPT.h | ||
virtual void OnPreSimulate_Internal() |
ChaosUserDataPT.h |