Open 3D Engine AzFramework 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.
Physics::CookedMeshShapeConfiguration Class Reference

Inherits Physics::ShapeConfiguration.

Public Types

enum class  MeshType : AZ::u8 { TriangleMesh = 0 , Convex }
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (CookedMeshShapeConfiguration, AZ::SystemAllocator)
 
 AZ_RTTI (CookedMeshShapeConfiguration, "{D9E58241-36BB-4A4F-B50C-1736EB7E841F}", ShapeConfiguration)
 
 CookedMeshShapeConfiguration (const CookedMeshShapeConfiguration &)
 
CookedMeshShapeConfigurationoperator= (const CookedMeshShapeConfiguration &)
 
ShapeType GetShapeType () const override
 
void SetCookedMeshData (const AZ::u8 *cookedData, size_t cookedDataSize, MeshType type)
 
const AZStd::vector< AZ::u8 > & GetCookedMeshData () const
 
MeshType GetMeshType () const
 
void * GetCachedNativeMesh ()
 
const void * GetCachedNativeMesh () const
 
void SetCachedNativeMesh (void *cachedNativeMesh)
 
- Public Member Functions inherited from Physics::ShapeConfiguration
 AZ_CLASS_ALLOCATOR (ShapeConfiguration, AZ::SystemAllocator)
 
 AZ_RTTI (ShapeConfiguration, "{1FD56C72-6055-4B35-9253-07D432B94E91}")
 
 ShapeConfiguration (const AZ::Vector3 &scale=ShapeConstants::DefaultScale)
 
virtual ShapeType GetShapeType () const =0
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 
- Static Public Member Functions inherited from Physics::ShapeConfiguration
static void Reflect (AZ::ReflectContext *context)
 

Additional Inherited Members

- Public Attributes inherited from Physics::ShapeConfiguration
AZ::Vector3 m_scale = ShapeConstants::DefaultScale
 

Member Function Documentation

◆ GetShapeType()

ShapeType Physics::CookedMeshShapeConfiguration::GetShapeType ( ) const
overridevirtual

◆ SetCookedMeshData()

void Physics::CookedMeshShapeConfiguration::SetCookedMeshData ( const AZ::u8 *  cookedData,
size_t  cookedDataSize,
MeshType  type 
)

Sets the cooked data. This will release the cached mesh. Input data has to be in the physics engine specific format. (e.g. in PhysX: result of cookTriangleMesh or cookConvexMesh).


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