#include <CustomTerrainPhysicsComponent.h>
Public Member Functions | |
void | Clear () |
float | GetHeight (FDVector Position) const |
void | InitializeHeightmap (UHeightMapDataAsset *DataAsset, FDVector Size, FDVector Origin, FDVector Tile0, float ScaleZ) |
Public Attributes | |
float | MaxHeight = 10.0f |
float | MinHeight = 0.0f |
FDVector | Offset |
std::vector< float > | Pixels |
float | Scale_Z = 1 |
uint32_t | Size_X |
uint32_t | Size_Y |
FDVector | Tile0Position |
FDVector | WorldSize |
Definition at line 64 of file CustomTerrainPhysicsComponent.h.
void FHeightMapData::Clear | ( | void | ) |
Definition at line 136 of file CustomTerrainPhysicsComponent.cpp.
References Pixels.
Referenced by FSparseHighDetailMap::GetHeight().
float FHeightMapData::GetHeight | ( | FDVector | Position | ) | const |
Definition at line 126 of file CustomTerrainPhysicsComponent.cpp.
References min(), Pixels, Size_X, Size_Y, Tile0Position, WorldSize, FDVector::X, and FDVector::Y.
Referenced by FDenseTile::InitializeTile().
void FHeightMapData::InitializeHeightmap | ( | UHeightMapDataAsset * | DataAsset, |
FDVector | Size, | ||
FDVector | Origin, | ||
FDVector | Tile0, | ||
float | ScaleZ | ||
) |
Definition at line 108 of file CustomTerrainPhysicsComponent.cpp.
References UHeightMapDataAsset::HeightValues, Offset, Pixels, Size_X, Size_Y, UHeightMapDataAsset::SizeX, UHeightMapDataAsset::SizeY, Tile0Position, UEFrameToSI(), and WorldSize.
float FHeightMapData::MaxHeight = 10.0f |
Definition at line 77 of file CustomTerrainPhysicsComponent.h.
float FHeightMapData::MinHeight = 0.0f |
Definition at line 76 of file CustomTerrainPhysicsComponent.h.
FDVector FHeightMapData::Offset |
Definition at line 73 of file CustomTerrainPhysicsComponent.h.
Referenced by InitializeHeightmap().
std::vector<float> FHeightMapData::Pixels |
Definition at line 80 of file CustomTerrainPhysicsComponent.h.
Referenced by Clear(), GetHeight(), and InitializeHeightmap().
float FHeightMapData::Scale_Z = 1 |
Definition at line 78 of file CustomTerrainPhysicsComponent.h.
uint32_t FHeightMapData::Size_X |
Definition at line 74 of file CustomTerrainPhysicsComponent.h.
Referenced by GetHeight(), and InitializeHeightmap().
uint32_t FHeightMapData::Size_Y |
Definition at line 75 of file CustomTerrainPhysicsComponent.h.
Referenced by GetHeight(), and InitializeHeightmap().
FDVector FHeightMapData::Tile0Position |
Definition at line 79 of file CustomTerrainPhysicsComponent.h.
Referenced by GetHeight(), FSparseHighDetailMap::GetTileId(), FSparseHighDetailMap::GetTilePosition(), FSparseHighDetailMap::GetVectorTileId(), InitializeHeightmap(), and FSparseHighDetailMap::InitializeMap().
FDVector FHeightMapData::WorldSize |
Definition at line 72 of file CustomTerrainPhysicsComponent.h.
Referenced by GetHeight(), InitializeHeightmap(), and FSparseHighDetailMap::SaveMap().