#include <NvBlastExtPxAssetImpl.h>
◆ ExtPxAssetImpl() [1/4]
◆ ExtPxAssetImpl() [2/4]
◆ ExtPxAssetImpl() [3/4]
◆ ExtPxAssetImpl() [4/4]
| Nv::Blast::ExtPxAssetImpl::ExtPxAssetImpl |
( |
TkAsset * |
asset | ) |
|
◆ ~ExtPxAssetImpl()
| Nv::Blast::ExtPxAssetImpl::~ExtPxAssetImpl |
( |
| ) |
|
◆ getAccelerator()
◆ getBondHealthsArray()
| Array<float>::type& Nv::Blast::ExtPxAssetImpl::getBondHealthsArray |
( |
| ) |
|
|
inline |
◆ getChunkCount()
| virtual uint32_t Nv::Blast::ExtPxAssetImpl::getChunkCount |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the number of chunks for this asset. May be used in conjunction with getChunks().
- Returns
- the number of chunks for the asset.
Implements Nv::Blast::ExtPxAsset.
◆ getChunks()
| virtual const ExtPxChunk* Nv::Blast::ExtPxAssetImpl::getChunks |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getChunksArray()
◆ getDefaultActorDesc() [1/2]
Get the default NvBlastActorDesc to be used when creating family from this asset. It is called 'default', because it can be overwritten in ExtPxManager::createFamily(...) function.
Initially default NvBlastActorDesc contains only uniform health values, and 'nullptr' is set in arrays of health. Call setUniformHealth(false) in order to set health per bond/chunk. You can then access directly values stored in NvBlastActorDesc, change them and they will be serialized/deserialized as withing asset itself.
NOTE: do not change actual pointers in NvBlastActorDesc: initialBondHealths and initialSupportChunkHealths. You can change actual values in those arrays or if they are 'nullptr' call setUniformHealth(false) before. Or call setUniformHealth(true) to make them 'nullptr'.
- Returns
- the default NvBlastActorDesc.
Implements Nv::Blast::ExtPxAsset.
◆ getDefaultActorDesc() [2/2]
| virtual const NvBlastActorDesc& Nv::Blast::ExtPxAssetImpl::getDefaultActorDesc |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getSubchunkCount()
| virtual uint32_t Nv::Blast::ExtPxAssetImpl::getSubchunkCount |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the number of subchunks for this asset. May be used in conjunction with getSubchunks(). Subchunk count is the maximum value of ExtPxChunk: (firstSubchunkIndex + subchunkCount).
- Returns
- the number of subchunks for the asset.
Implements Nv::Blast::ExtPxAsset.
◆ getSubchunks()
| virtual const ExtPxSubchunk* Nv::Blast::ExtPxAssetImpl::getSubchunks |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getSubchunksArray()
◆ getSupportChunkHealthsArray()
| Array<float>::type& Nv::Blast::ExtPxAssetImpl::getSupportChunkHealthsArray |
( |
| ) |
|
|
inline |
◆ getTkAsset()
| virtual const TkAsset& Nv::Blast::ExtPxAssetImpl::getTkAsset |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ release()
| virtual void Nv::Blast::ExtPxAssetImpl::release |
( |
| ) |
|
|
overridevirtual |
◆ setAccelerator()
◆ setUniformHealth()
| virtual void Nv::Blast::ExtPxAssetImpl::setUniformHealth |
( |
bool |
enabled | ) |
|
|
overridevirtual |
◆ ExtPxAsset
The documentation for this class was generated from the following file: