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::TriangleMeshShapeConfiguration Class Reference

Inherits Physics::ShapeConfiguration.

Public Member Functions

 AZ_CLASS_ALLOCATOR (TriangleMeshShapeConfiguration, AZ::SystemAllocator)
 
ShapeType GetShapeType () const override
 
- 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
 

Public Attributes

const void * m_vertexData = nullptr
 
AZ::u32 m_vertexCount = 0
 
AZ::u32 m_vertexStride = 4
 Data size of a given vertex, e.g. float * 3 = 12.
 
const void * m_indexData = nullptr
 
AZ::u32 m_indexCount = 0
 
AZ::u32 m_indexStride = 12
 Data size of indices for a given triangle, e.g. AZ::u32 * 3 = 12.
 
bool m_copyData = true
 
- Public Attributes inherited from Physics::ShapeConfiguration
AZ::Vector3 m_scale = ShapeConstants::DefaultScale
 

Additional Inherited Members

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

Member Function Documentation

◆ GetShapeType()

ShapeType Physics::TriangleMeshShapeConfiguration::GetShapeType ( ) const
inlineoverridevirtual

Member Data Documentation

◆ m_copyData

bool Physics::TriangleMeshShapeConfiguration::m_copyData = true

If set, vertex/index buffers will be copied in the native physics implementation, and don't need to be kept alive by the caller;


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