NvBlastFamilyCreateFirstActor
Defined in lowlevel/NvBlast.h
-
NvBlastActor *NvBlastFamilyCreateFirstActor(NvBlastFamily *family, const NvBlastActorDesc *desc, void *scratch, NvBlastLog logFn)
Instance the family’s asset into a new, unfractured actor.
- Parameters
family – [in] Family in which to create a new actor. The family must have no other actors in it. (See NvBlastAssetCreateFamily.)
desc – [in] Actor descriptor (see NvBlastActorDesc).
scratch – [in] User-supplied scratch memory of size NvBlastFamilyGetRequiredScratchForCreateFirstActor(asset) bytes, where ‘asset’ is the NvBlastAsset from which the family was created.
logFn – [in] User-supplied message function (see NvBlastLog definition). May be NULL.
- Returns
pointer to new NvBlastActor if successful (the actor was successfully inserted into the family), or NULL if unsuccessful.