#include <NvBlastExtPxFamilyImpl.h>
◆ ExtPxFamilyImpl()
◆ ~ExtPxFamilyImpl()
| Nv::Blast::ExtPxFamilyImpl::~ExtPxFamilyImpl |
( |
| ) |
|
◆ despawn()
| virtual bool Nv::Blast::ExtPxFamilyImpl::despawn |
( |
| ) |
|
|
overridevirtual |
Despawn this ExtPxFamily. This removes the PhysX actors from PxScene and deletes them, as well as deleting the created ExtPxActors
This does not call release() on the family.
- Returns
- true if successful.
Implements Nv::Blast::ExtPxFamily.
◆ dispatchActorCreated()
| void Nv::Blast::ExtPxFamilyImpl::dispatchActorCreated |
( |
ExtPxActor & |
actor | ) |
|
◆ dispatchActorDestroyed()
| void Nv::Blast::ExtPxFamilyImpl::dispatchActorDestroyed |
( |
ExtPxActor & |
actor | ) |
|
◆ getActorCount()
| virtual uint32_t Nv::Blast::ExtPxFamilyImpl::getActorCount |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getActors()
| virtual uint32_t Nv::Blast::ExtPxFamilyImpl::getActors |
( |
ExtPxActor ** |
buffer, |
|
|
uint32_t |
bufferSize |
|
) |
| const |
|
inlineoverridevirtual |
Retrieve an array of pointers (into the user-supplied buffer) to actors.
- Parameters
-
| [out] | buffer | A user-supplied array of ExtPxActor pointers. |
| [in] | bufferSize | The number of elements available to write into buffer. |
- Returns
- the number of ExtPxActor pointers written to the buffer.
Implements Nv::Blast::ExtPxFamily.
◆ getMaterial()
The default material associated with this actor family.
- Returns
- a pointer to the default material.
Implements Nv::Blast::ExtPxFamily.
◆ getPxActorDesc()
Get the default ExtPxPxActorDesc to be used on all newly created PxActors.
- Returns
- a pointer to the default PxActor desc. Can be nullptr.
Implements Nv::Blast::ExtPxFamily.
◆ getPxAsset()
| virtual ExtPxAsset& Nv::Blast::ExtPxFamilyImpl::getPxAsset |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getPxShapeDescTemplate()
Get the default ExtPxPxShapeDesc to be used on all newly created PxShapes.
- Returns
- a pointer to the default PxShape desc. Can be nullptr.
Implements Nv::Blast::ExtPxFamily.
◆ getSubchunkShapes()
| virtual const physx::PxShape* const* Nv::Blast::ExtPxFamilyImpl::getSubchunkShapes |
( |
| ) |
const |
|
inlineoverridevirtual |
Access an array of shapes of subchunks. The size of array is equal getPxAsset()->getSubchunkCount(). For every corresponding subchunk it contains pointer to created PxShape or nullptr.
- Returns
- the pointer to subchunk shapes array.
Implements Nv::Blast::ExtPxFamily.
◆ getTkFamily()
| virtual TkFamily& Nv::Blast::ExtPxFamilyImpl::getTkFamily |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ postSplitUpdate()
| virtual void Nv::Blast::ExtPxFamilyImpl::postSplitUpdate |
( |
| ) |
|
|
overridevirtual |
◆ receive()
| virtual void Nv::Blast::ExtPxFamilyImpl::receive |
( |
const TkEvent * |
events, |
|
|
uint32_t |
eventCount |
|
) |
| |
|
overridevirtual |
Interface to be implemented by the user. Events will be sent by BlastTk through a call to this function.
- Parameters
-
| [in] | events | The array of events being dispatched. |
| [in] | eventCount | The number of events in the array. |
Implements Nv::Blast::TkEventListener.
◆ release()
| virtual void Nv::Blast::ExtPxFamilyImpl::release |
( |
| ) |
|
|
overridevirtual |
◆ setMaterial() [1/2]
| virtual void Nv::Blast::ExtPxFamilyImpl::setMaterial |
( |
PxMaterial & |
material | ) |
|
|
inlineoverridevirtual |
◆ setMaterial() [2/2]
| virtual void Nv::Blast::ExtPxFamilyImpl::setMaterial |
( |
const NvBlastExtMaterial * |
material | ) |
|
|
inlineoverridevirtual |
Set the default material associated with this actor family.
- Parameters
-
| [in] | material | The material to be the new default. |
Implements Nv::Blast::ExtPxFamily.
◆ setPxActorDesc()
◆ setPxShapeDescTemplate()
◆ spawn()
| virtual bool Nv::Blast::ExtPxFamilyImpl::spawn |
( |
const physx::PxTransform & |
pose, |
|
|
const physx::PxVec3 & |
scale, |
|
|
const ExtPxSpawnSettings & |
settings |
|
) |
| |
|
overridevirtual |
Spawn ExtPxFamily. Can be called only once. Actual PhysX actors will created and placed in PxScene
- Parameters
-
| [in] | pose | World transform. |
| [in] | scale | Scale applied to spawned actors. |
| [in] | settings | Spawn settings. |
- Returns
- true if spawn was successful, false otherwise.
Implements Nv::Blast::ExtPxFamily.
◆ subscribe()
| virtual void Nv::Blast::ExtPxFamilyImpl::subscribe |
( |
ExtPxListener & |
listener | ) |
|
|
inlineoverridevirtual |
◆ unsubscribe()
| virtual void Nv::Blast::ExtPxFamilyImpl::unsubscribe |
( |
ExtPxListener & |
listener | ) |
|
|
inlineoverridevirtual |
◆ ExtPxActorImpl
| friend Nv::Blast::ExtPxFamilyImpl::ExtPxActorImpl |
◆ ExtPxManagerImpl
| friend Nv::Blast::ExtPxFamilyImpl::ExtPxManagerImpl |
The documentation for this class was generated from the following file: