Open 3D Engine PhysX Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
PhysX::Pipeline::MeshAssetData Class Reference

Physics Asset data structure. More...

#include <MeshAsset.h>

Public Types

using ShapeConfigurationPair = AZStd::pair< AZStd::shared_ptr< AssetColliderConfiguration >, AZStd::shared_ptr< Physics::ShapeConfiguration > >
 
using ShapeConfigurationList = AZStd::vector< ShapeConfigurationPair >
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (MeshAssetData, AZ::SystemAllocator)
 
 AZ_TYPE_INFO (MeshAssetData, "{958C8530-DF1F-4B68-800B-E92056708127}")
 
AZ::Data::Asset< MeshAssetCreateMeshAsset () const
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

ShapeConfigurationList m_colliderShapes
 Shapes data with optional collider configuration override.
 
Physics::MaterialSlots m_materialSlots
 List of material slots of the mesh asset.
 
AZStd::vector< AZ::u16 > m_materialIndexPerShape
 An index of the material in m_materialSlots for each shape.
 

Static Public Attributes

static constexpr AZ::u16 TriangleMeshMaterialIndex = (std::numeric_limits<AZ::u16>::max)()
 

Detailed Description

Physics Asset data structure.

Member Function Documentation

◆ CreateMeshAsset()

AZ::Data::Asset< MeshAsset > PhysX::Pipeline::MeshAssetData::CreateMeshAsset ( ) const

Creates a Mesh Asset with random Id from the properties of this mesh asset data.


The documentation for this class was generated from the following file: