#include <CustomTerrainPhysicsComponent.h>
Public Member Functions | |
FDenseTile () | |
FDenseTile (const FDenseTile &Origin) | |
FDenseTile (FDenseTile &&Origin) | |
void | GetAllParticles (std::vector< FParticle *> &ParticlesInRadius) |
void | GetParticlesInBox (const FOrientedBox &OBox, std::vector< FParticle *> &ParticlesInRadius) |
std::vector< FParticle * > | GetParticlesInRadius (FDVector Position, float Radius) |
void | GetParticlesInRadius (FDVector Position, float Radius, std::vector< FParticle *> &ParticlesInRadius) |
void | InitializeDataStructure () |
void | InitializeTile (uint32_t TextureSize, float AffectedRadius, float ParticleSize, float Depth, FDVector TileOrigin, FDVector TileEnd, const FString &SavePath, const FHeightMapData &HeightMap) |
FDenseTile & | operator= (FDenseTile &&Origin) |
void | UpdateLocalHeightmap () |
~FDenseTile () | |
Public Attributes | |
bool | bHeightmapNeedToUpdate = false |
bool | bParticlesZOrderedInitialized = false |
uint32_t | PartialHeightMapSize = 0 |
std::vector< FParticle > | Particles |
std::vector< float > | ParticlesHeightMap |
std::vector< std::multiset< float, std::greater< float > > > | ParticlesZOrdered |
FString | SavePath |
FDVector | TilePosition |
uint32_t | TileSize = 0 |
Definition at line 83 of file CustomTerrainPhysicsComponent.h.
FDenseTile::FDenseTile | ( | ) |
Definition at line 141 of file CustomTerrainPhysicsComponent.cpp.
FDenseTile::~FDenseTile | ( | ) |
Definition at line 149 of file CustomTerrainPhysicsComponent.cpp.
FDenseTile::FDenseTile | ( | const FDenseTile & | Origin | ) |
Definition at line 158 of file CustomTerrainPhysicsComponent.cpp.
References Particles, ParticlesHeightMap, ParticlesZOrdered, SavePath, and TilePosition.
FDenseTile::FDenseTile | ( | FDenseTile && | Origin | ) |
Definition at line 167 of file CustomTerrainPhysicsComponent.cpp.
void FDenseTile::GetAllParticles | ( | std::vector< FParticle *> & | ParticlesInRadius | ) |
Definition at line 324 of file CustomTerrainPhysicsComponent.cpp.
void FDenseTile::GetParticlesInBox | ( | const FOrientedBox & | OBox, |
std::vector< FParticle *> & | ParticlesInRadius | ||
) |
Definition at line 308 of file CustomTerrainPhysicsComponent.cpp.
References SIToUEFrame().
Definition at line 294 of file CustomTerrainPhysicsComponent.cpp.
Referenced by GetParticlesInRadius().
void FDenseTile::GetParticlesInRadius | ( | FDVector | Position, |
float | Radius, | ||
std::vector< FParticle *> & | ParticlesInRadius | ||
) |
Definition at line 282 of file CustomTerrainPhysicsComponent.cpp.
References GetParticlesInRadius().
void FDenseTile::InitializeDataStructure | ( | ) |
Definition at line 251 of file CustomTerrainPhysicsComponent.cpp.
References FParticle::Position, FDVector::X, FDVector::Y, and FDVector::Z.
void FDenseTile::InitializeTile | ( | uint32_t | TextureSize, |
float | AffectedRadius, | ||
float | ParticleSize, | ||
float | Depth, | ||
FDVector | TileOrigin, | ||
FDVector | TileEnd, | ||
const FString & | SavePath, | ||
const FHeightMapData & | HeightMap | ||
) |
Definition at line 187 of file CustomTerrainPhysicsComponent.cpp.
References FHeightMapData::GetHeight(), ReadFVector(), FDVector::ToString(), FDVector::X, FDVector::Y, and FDVector::Z.
Referenced by FSparseHighDetailMap::InitializeRegion(), and FSparseHighDetailMap::InitializeRegionInCache().
FDenseTile & FDenseTile::operator= | ( | FDenseTile && | Origin | ) |
Definition at line 176 of file CustomTerrainPhysicsComponent.cpp.
References TilePosition.
void FDenseTile::UpdateLocalHeightmap | ( | ) |
Definition at line 332 of file CustomTerrainPhysicsComponent.cpp.
References FSparseHighDetailMap::GetParticlesInRadius().
bool FDenseTile::bHeightmapNeedToUpdate = false |
Definition at line 106 of file CustomTerrainPhysicsComponent.h.
Referenced by FSparseHighDetailMap::SaveMap().
bool FDenseTile::bParticlesZOrderedInitialized = false |
Definition at line 103 of file CustomTerrainPhysicsComponent.h.
Referenced by FSparseHighDetailMap::SaveMap().
uint32_t FDenseTile::PartialHeightMapSize = 0 |
Definition at line 107 of file CustomTerrainPhysicsComponent.h.
std::vector<FParticle> FDenseTile::Particles |
Definition at line 100 of file CustomTerrainPhysicsComponent.h.
Referenced by FDenseTile().
std::vector<float> FDenseTile::ParticlesHeightMap |
Definition at line 101 of file CustomTerrainPhysicsComponent.h.
Referenced by FDenseTile(), and FSparseHighDetailMap::SaveMap().
std::vector<std::multiset<float,std::greater<float> > > FDenseTile::ParticlesZOrdered |
Definition at line 102 of file CustomTerrainPhysicsComponent.h.
Referenced by FDenseTile(), and FSparseHighDetailMap::SaveMap().
FString FDenseTile::SavePath |
Definition at line 105 of file CustomTerrainPhysicsComponent.h.
Referenced by FDenseTile().
FDVector FDenseTile::TilePosition |
Definition at line 104 of file CustomTerrainPhysicsComponent.h.
Referenced by FDenseTile(), operator=(), and FSparseHighDetailMap::SaveMap().
uint32_t FDenseTile::TileSize = 0 |
Definition at line 108 of file CustomTerrainPhysicsComponent.h.