Navigation
API > API/Runtime > API/Runtime/Chaos
- Helper class used to build Chaos Visual Debugger data wrappers, without directly referencing chaos' types in them.
-
This is needed for now because we want to keep the data wrapper structs/classes on a separate module where possible, but if we reference Chaos's types directly we will end up with a circular dependency issue because the ChaosVDRuntime module will need the Chaos module but the Chaos module will need the ChaosVDRuntime module to use the structs Once development is done and can we commit to backward compatibility, this helper class might go away (trough the proper deprecation process)
| Name | FChaosVDDataWrapperUtils |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/ChaosVisualDebugger/ChaosVDDataWrapperUtils.h |
| Include Path | #include "ChaosVisualDebugger/ChaosVDDataWrapperUtils.h" |
Syntax
class FChaosVDDataWrapperUtils
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FChaosVisualDebuggerTrace | friend | ChaosVisualDebugger/ChaosVDDataWrapperUtils.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddTreeLeaves
(
const TConstArrayView< Chaos::TBoundingVolume< Chaos::FAccelerationStructureHandle > >& LeavesConta..., |
ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | ||
static void AddTreeLeaves
(
const TConstArrayView< Chaos::TAABBTreeLeafArray< Chaos::FAccelerationStructureHandle > >& LeavesCo..., |
ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | ||
static void ApplyJointDataWrapperGTConstraint
(
Chaos::FJointConstraint* ConstraintPtr, |
ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | ||
static void ApplyJointDataWrapperToHandle
(
Chaos::FPBDJointConstraintHandle* ConstaintHanlde, |
ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | ||
static FChaosVDCharacterGroundConstraint BuildCharacterGroundConstraintDataWrapper
(
const Chaos::FCharacterGroundConstraintHandle* ConstaintHanlde |
Creates and populates a FChaosVDChartacterGroundConstraint with the data of the provided FCharacterGroundConstraintHandle | ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | |
static FChaosVDConstraint BuildConstraintDataWrapperFromConstraint
(
const Chaos::FPBDCollisionConstraint& InConstraint |
Creates and populates a FChaosVDConstraint with the data of the provided FPBDCollisionConstraint | ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | |
static void BuildDataWrapperFromAABBStructure
(
const Chaos::TAABBTree< Chaos::FAccelerationStructureHandle, LeafType >& AABBTree, |
ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | ||
static void BuildDataWrapperFromAABBStructure
(
const Chaos::ISpatialAccelerationCollection< Chaos::FAccelerationStructureHandle, Chaos::FReal, 3 > ..., |
ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | ||
static FChaosVDJointConstraint BuildGTJointDataWrapper
(
Chaos::FJointConstraint* GTConstraintPtr |
ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | ||
static FChaosVDJointConstraint BuildJointDataWrapper
(
const Chaos::FPBDJointConstraintHandle* ConstaintHanlde |
Creates and populates a FChaosVDJointConstraint with the data of the provided FPBDJointConstraintHandle | ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | |
static FChaosVDParticlePairMidPhase BuildMidPhaseDataWrapperFromMidPhase
(
const Chaos::FParticlePairMidPhase& InMidPhase |
Creates and populates a FChaosVDParticlePairMidPhase with the data of the provided FParticlePairMidPhase | ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | |
static FChaosVDParticleDataWrapper BuildParticleDataWrapperFromGTParticle
(
const Chaos::FGeometryParticle* GTParticle |
ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | ||
static FChaosVDParticleDataWrapper BuildParticleDataWrapperFromParticle
(
const Chaos::FGeometryParticleHandle* ParticleHandlePtr |
Creates and populates a FChaosVDParticleDataWrapper with the data of the provided FGeometryParticleHandle | ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | |
static FBox ConvertToFBox
(
const Chaos::TAABB< Chaos::FReal, 3 >& Bounds |
Converts a Chaos::FVec3 to a FVector. | ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | |
static FVector ConvertToFVector
(
const Chaos::FVec3f& VectorRef |
Converts a Chaos::FVec3 to a FVector. | ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | |
static void CopyCollisionMaterialToDataWrapper
(
const Chaos::FPBDCollisionConstraintMaterial& InCopyFrom, |
Takes a FPBDCollisionConstraintMaterial and copies the relevant data to the CVD counterpart | ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | |
static void CopyJointConstraintSettingsToWrapper
(
const Chaos::FPBDJointSettings& InSettings, |
ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | ||
static void CopyJointSettingsFromWrapper
(
const FChaosVDJointSettingsDataWrapper& InWrappedJointSettingsData, |
ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | ||
static void CopyManifoldPointResultsToDataWrapper
(
const Chaos::FManifoldPointResult& InCopyFrom, |
Takes a FManifoldPointResult and copies the relevant data to the CVD counterpart | ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | |
static void CopyManifoldPointsToDataWrapper
(
const Chaos::FManifoldPoint& InCopyFrom, |
Takes a FManifoldPoint and copies the relevant data to the CVD counterpart | ChaosVisualDebugger/ChaosVDDataWrapperUtils.h | |
static void CopyShapeDataToWrapper
(
const Chaos::FShapeInstancePtr& ShapeDataPtr, |
ChaosVisualDebugger/ChaosVDDataWrapperUtils.h |