VR-Engage  2.2
Loading...
Searching...
No Matches
projectileDetonationResult.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file projectileDetonationResult.h
7//! \ingroup vreVrfobjcore
8//! \brief Projectile detonation result class for VREngage
9//!
10//! This file defines the DtProjectileDetonationResult class, which represents the result
11//! of a projectile detonation in VREngage simulations. It contains information about
12//! what happened when a projectile reached its target or termination point.
13
14#pragma once
16
17#include <vrfobjcore/simObjectReference.h>
18
19#include <matrix/vlVector.h>
20
21#include <vlpi/disEnums.h>
22
23
24namespace makVre
25{
26//! \brief Class representing the result of a projectile detonation
27//!
28//! This class contains information about what happened when a projectile reached its
29//! target or termination point. It includes details about the collision result,
30//! distance to the target, the entity that was hit (if any), and the position
31//! where the detonation occurred.
33{
34public:
35 //! \brief The collision result
36 //!
37 //! Enumeration indicating what happened when the projectile terminated
38 //! (e.g., entity hit, terrain hit, max range reached, etc.).
39 DtDetonationResult result;
40
41 //! \brief The distance to the target in meters
42 //!
43 //! The distance from the projectile's origin to the target that was hit.
44 //! Only meaningful when a target was actually hit.
46
47 //! \brief Reference to the entity that was hit
48 //!
49 //! Contains a reference to the entity that was hit by the projectile,
50 //! or an invalid reference if no entity was hit (e.g., terrain hit
51 //! or max range reached).
52 DtSimObjectReference targetEntity;
53
54 //! \brief The position where the detonation occurred
55 //!
56 //! The 3D position in local coordinates where the projectile terminated,
57 //! whether by hitting something or reaching its maximum range.
59};
60} // namespace makVre
Class representing the result of a projectile detonation.
Definition projectileDetonationResult.h:33
DtDetonationResult result
The collision result.
Definition projectileDetonationResult.h:39
DtVector detonationPosition
The position where the detonation occurred.
Definition projectileDetonationResult.h:58
double rangeToTarget
The distance to the target in meters.
Definition projectileDetonationResult.h:45
DtSimObjectReference targetEntity
Reference to the entity that was hit.
Definition projectileDetonationResult.h:52
Export macros for the VREngage Object Core library.
#define VREVRFOBJCORE_DLL
Platform-specific DLL export/import declaration.
Definition export.h:27
Include export definitions for this library.
Definition glsVreMessageUtil.h:49