VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtBallisticProjectile Class Reference

CPU-side pool slot descriptor for a single GPU-simulated bullet.

Owns no physics state; position, velocity, and liveness are managed entirely by the GPU pipeline. This object tracks the pool slot index and the firing entity ID so the manager can write spawn data and release slots on projectile death.

Public Member Functions

 DtBallisticProjectile (int index)
 
virtual ~DtBallisticProjectile ()
 
virtual void deactivate ()
 
virtual int index () const
 
virtual const DtUniqueID & uniqueId () const
 
virtual void setUniqueId (const DtUniqueID &uniqueId)
 
virtual bool isActive () const
 
virtual void setIsActive (bool active)
 

Protected Attributes

int myIndex
 
DtUniqueID myUniqueId
 
bool myIsActive
 

Constructor & Destructor Documentation

makVrv::DtBallisticProjectile::DtBallisticProjectile ( int  index)

Constructs a projectile assigned to the given pool slot.

Parameters
indexPool slot index (stable offset into SpawnBuffer and StateBuffer).
virtual makVrv::DtBallisticProjectile::~DtBallisticProjectile ( )
virtual

Virtual destructor.

Member Function Documentation

virtual void makVrv::DtBallisticProjectile::deactivate ( )
virtual

Resets this slot for return to the pool; does not modify GPU buffers.

virtual int makVrv::DtBallisticProjectile::index ( ) const
virtual

Returns the pool slot index.

virtual const DtUniqueID& makVrv::DtBallisticProjectile::uniqueId ( ) const
virtual

Returns the unique ID of the entity that fired this projectile.

virtual void makVrv::DtBallisticProjectile::setUniqueId ( const DtUniqueID &  uniqueId)
virtual

Sets the unique ID of the firing entity.

Parameters
uniqueIdUnique ID to associate with this projectile.
virtual bool makVrv::DtBallisticProjectile::isActive ( ) const
virtual

Returns true while this slot is acquired from the pool and not yet released.

virtual void makVrv::DtBallisticProjectile::setIsActive ( bool  active)
virtual

Sets the CPU-side liveness flag.

Parameters
activeTrue to mark the slot as live; false to mark it as free.

Member Data Documentation

int makVrv::DtBallisticProjectile::myIndex
protected

Pool slot index; stable offset into SpawnBuffer and StateBuffer.

DtUniqueID makVrv::DtBallisticProjectile::myUniqueId
protected

Unique ID of the entity that fired this projectile.

bool makVrv::DtBallisticProjectile::myIsActive
protected

CPU-side liveness flag; authoritative source is the GPU readback.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)