Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

31 lines
924 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Components/ChaosVDSolverDataComponent.h"
#include "ChaosVDGTAccelerationStructuresDataComponent.generated.h"
struct FChaosVDAABBTreeDataWrapper;
struct FChaosVDGameFrameData;
UCLASS()
class UChaosVDGTAccelerationStructuresDataComponent : public UChaosVDSolverDataComponent
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
UChaosVDGTAccelerationStructuresDataComponent();
void UpdateAABBTreeData(TConstArrayView<TSharedPtr<FChaosVDAABBTreeDataWrapper>> AABBTreeDataView);
TConstArrayView<TSharedPtr<FChaosVDAABBTreeDataWrapper>> GetAABBTreeData() const { return RecordedABBTreeData; }
virtual void UpdateFromNewGameFrameData(const FChaosVDGameFrameData& InGameFrameData) override;
virtual void ClearData() override;
protected:
TArray<TSharedPtr<FChaosVDAABBTreeDataWrapper>> RecordedABBTreeData;
};