IPhysicsStreamer

C++
struct IPhysicsStreamer {
};
File

physinterface.h

Description

this is a callback interface for on-demand physicalization, physics gets a pointer to an implementation

IPhysicsStreamer::~IPhysicsStreamer Destructor
C++
virtual ~IPhysicsStreamer();
IPhysicsStreamer::CreatePhysicalEntitiesInBox Method
C++
virtual int CreatePhysicalEntitiesInBox(const Vec3 & boxMin, const Vec3 & boxMax) = 0;
Description

called when on-demand entities in a box need to be physicalized (the grid is activated once RegisterBBoxInPODGrid is called)

IPhysicsStreamer::CreatePhysicalEntity Method
C++
virtual int CreatePhysicalEntity(void * pForeignData, int iForeignData, int iForeignFlags) = 0;
Description

called whenever a placeholder (created through CreatePhysicalPlaceholder) requests a full entity

IPhysicsStreamer::DestroyPhysicalEntitiesInBox Method
C++
virtual int DestroyPhysicalEntitiesInBox(const Vec3 & boxMin, const Vec3 & boxMax) = 0;
Description

called when on-demand physicalized box expires. the streamer is expected to delete those that have a 0 refcounter, and keep the rest

IPhysicsStreamer::DestroyPhysicalEntity Method
C++
virtual int DestroyPhysicalEntity(IPhysicalEntity * pent) = 0;
Description

called whenever a placeholder-owned entity expires