NvBlastActorGetBondHealths

Defined in lowlevel/NvBlast.h

const float *NvBlastActorGetBondHealths(const NvBlastActor *actor, NvBlastLog logFn)

Access the bond health data for an actor.

This function returns a pointer to the head of an array of bond healths (floats). This array is the same for any actor that has been created from repeated fracturing of the same original instance of an asset (in the same instance family).

The indices obtained from NvBlastSupportGraph::adjacentBondIndices in the asset may be used to access this array.

The size of the array returned is NvBlastAssetGetBondCount(asset, logFn), where ‘asset’ is the NvBlastAsset that was used to create the actor.

This array is valid as long as any actor in the instance family for the input actor exists.

If the input actor is invalid, NULL will be returned.

Parameters
  • actor[in] The actor.

  • logFn[in] User-supplied message function (see NvBlastLog definition). May be NULL.

Returns

the array of bond healths for the actor’s instance family, or NULL if the actor is invalid.