CARLA
Public Member Functions | Public Attributes | List of all members
FHeightMapData Struct Reference

#include <CustomTerrainPhysicsComponent.h>

+ Collaboration diagram for FHeightMapData:

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
 

Detailed Description

Definition at line 64 of file CustomTerrainPhysicsComponent.h.

Member Function Documentation

◆ Clear()

void FHeightMapData::Clear ( void  )

Definition at line 136 of file CustomTerrainPhysicsComponent.cpp.

References Pixels.

Referenced by FSparseHighDetailMap::GetHeight().

+ Here is the caller graph for this function:

◆ 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitializeHeightmap()

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.

+ Here is the call graph for this function:

Member Data Documentation

◆ MaxHeight

float FHeightMapData::MaxHeight = 10.0f

Definition at line 77 of file CustomTerrainPhysicsComponent.h.

◆ MinHeight

float FHeightMapData::MinHeight = 0.0f

Definition at line 76 of file CustomTerrainPhysicsComponent.h.

◆ Offset

FDVector FHeightMapData::Offset

Definition at line 73 of file CustomTerrainPhysicsComponent.h.

Referenced by InitializeHeightmap().

◆ Pixels

std::vector<float> FHeightMapData::Pixels

Definition at line 80 of file CustomTerrainPhysicsComponent.h.

Referenced by Clear(), GetHeight(), and InitializeHeightmap().

◆ Scale_Z

float FHeightMapData::Scale_Z = 1

Definition at line 78 of file CustomTerrainPhysicsComponent.h.

◆ Size_X

uint32_t FHeightMapData::Size_X

Definition at line 74 of file CustomTerrainPhysicsComponent.h.

Referenced by GetHeight(), and InitializeHeightmap().

◆ Size_Y

uint32_t FHeightMapData::Size_Y

Definition at line 75 of file CustomTerrainPhysicsComponent.h.

Referenced by GetHeight(), and InitializeHeightmap().

◆ Tile0Position

FDVector FHeightMapData::Tile0Position

◆ WorldSize

FDVector FHeightMapData::WorldSize

The documentation for this struct was generated from the following files: