Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/ULandscapeHeightfieldCollisionCo- > API/Runtime/Landscape/ULandscapeHeightfieldCollisionCo-/CreateCollisionObject
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Classes/LandscapeHeightfieldCollisionComponent.h |
| Include | #include "LandscapeHeightfieldCollisionComponent.h" |
| Source | /Engine/Source/Runtime/Landscape/Private/LandscapeCollision.cpp |
void CreateCollisionObject
(
bool bUseDefaultMaterialOnly,
TArrayView< const uint16 > Heights,
TArrayView< const uint16 > SimpleHeights,
TArrayView< const uint8 > PhysicalMaterialIds,
TArrayView< const uint8 > SimplePhysicalMaterialIds,
TArrayView< const TObjectPtr< UPhysicalMaterial > > PhysicalMaterialObjects
)
Remarks
Creates collision object from raw runtime data. Data is assumed at this point to contain valid physical material indices with visiblility layer set to 0xFF