Open 3D Engine NvCloth Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <Fabric.h>
Public Member Functions | |
Fabric (const FabricCookedData &cookedData, NvFabricUniquePtr nvFabric) | |
const AZStd::vector< int32_t > & | GetPhaseTypes () const |
Public Attributes | |
FabricId | m_id |
NvFabricUniquePtr | m_nvFabric |
NvCloth fabric object. | |
FabricCookedData | m_cookedData |
Fabric cooked data used to construct this fabric. | |
int | m_numClothsUsingFabric = 0 |
Counter of Cloth instances created with this fabric. | |
Fabric objects are the instances of FabricCookedData. There will be only one Fabric created per FabricCookedData, hold by SystemComponent and identified by FabricId.
It has a counter of how many Cloth instances have been created using this fabric, the moment the counter is zero (when the last cloth using this fabric has been destroyed) th fabric will be automatically destroyed.
|
inline |
Returns the list of phase types (horizontal, vertical, bending or shearing) created for the fabric when it was cooked.
FabricId NvCloth::Fabric::m_id |
Fabric unique id.