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

Cross-thread transfer record for one ballistic proximity sound trigger.

Public Attributes

Vector3_32 myCpaPosition
 
Vector3_32 myCpaVelocity
 
float myCpaDistance
 
int32_t mySoundFileIndex
 
uint32_t myBulletId
 
Vector3_64 myObserverPosition
 
float myCpaT
 
uint64_t myFireRequestId
 
Vector3_64 myMuzzlePosition
 
bool myMuzzlePositionKnown = false
 

Member Data Documentation

Vector3_32 makVrv::DtBallisticSoundTrigger::myCpaPosition

CPA position in observer-local space (meters)

Vector3_32 makVrv::DtBallisticSoundTrigger::myCpaVelocity

Bullet velocity at CPA (m/s); drives Doppler, supersonic gate, and receding-motion filter.

float makVrv::DtBallisticSoundTrigger::myCpaDistance

                              Distance from observer to CPA (meters); drives volume

Stable index into DtBallisticSoundManager::myIndexToGroup (-1 = unmapped, no sound).

int32_t makVrv::DtBallisticSoundTrigger::mySoundFileIndex
uint32_t makVrv::DtBallisticSoundTrigger::myBulletId

StateBuffer slot index of the bullet (diagnostic)

Vector3_64 makVrv::DtBallisticSoundTrigger::myObserverPosition

                                  Observer world-space position at the frame this trigger was
                           generated; used to translate myCpaPosition to world space

Raw CPA parameter from the GPU: t = dot(-P0, V) / dot(V,V). myCpaT in (0, 1] : CPA falls within this simulation step (flyby). myCpaT > 1.0 : Bullet approaching, already inside detection radius (cpaPos/cpaDist reflect actual segment position); held as pending record, DROPPED (no crack) if bullet dies before reaching CPA. myCpaT == -1.0 : Within-zone sentinel; bullet is inside the detection radius.

float makVrv::DtBallisticSoundTrigger::myCpaT
uint64_t makVrv::DtBallisticSoundTrigger::myFireRequestId

Burst-record ID (DtBallisticBurstRecord::myId) of the fire burst that spawned this bullet. Used by DtBallisticSoundManager to group rounds from the same burst onto a single DtBallisticSoundStream slot. Zero if the bullet has no burst record.

Vector3_64 makVrv::DtBallisticSoundTrigger::myMuzzlePosition

World-space; captured at DtOsgBallisticManager::fire() time.

bool makVrv::DtBallisticSoundTrigger::myMuzzlePositionKnown = false

Defensive fallback; false when the burst was not registered via notifyBurstFired so unmapped bursts still play.


The documentation for this struct 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)