VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBallisticProjectile.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 #include <vrvCore/DtUniqueID.h>
14 
15 namespace makVrv
16 {
17 
24  {
25  public:
29  DtBallisticProjectile(int index);
31  virtual ~DtBallisticProjectile();
32 
34  virtual void deactivate();
35 
37  virtual int index() const;
38 
40  virtual const DtUniqueID& uniqueId() const;
41 
45  virtual void setUniqueId(const DtUniqueID& uniqueId);
46 
48  virtual bool isActive() const;
49 
53  virtual void setIsActive(bool active);
54 
55  protected:
57  int myIndex;
58 
61 
63  bool myIsActive;
64  };
65 
66 } // namespace makVrv
int myIndex
Pool slot index; stable offset into SpawnBuffer and StateBuffer.
Definition: DtBallisticProjectile.h:57
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
CPU-side pool slot descriptor for a single GPU-simulated bullet.
Definition: DtBallisticProjectile.h:23
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
bool myIsActive
CPU-side liveness flag; authoritative source is the GPU readback.
Definition: DtBallisticProjectile.h:63
Contains makVrv::DtUniqueID type.
Contains DLL export macros.
DtUniqueID myUniqueId
Unique ID of the entity that fired this projectile.
Definition: DtBallisticProjectile.h:60

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)