VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtProjectileDetonationResult Class Reference

Detailed Description

This class contains information about what happened when a projectile reached its target or termination point. It includes details about the collision result, distance to the target, the entity that was hit (if any), and the position where the detonation occurred.

#include <projectileDetonationResult.h>

Public Attributes

DtDetonationResult result
 
double rangeToTarget
 
DtSimObjectReference targetEntity
 
DtVector detonationPosition
 

Member Data Documentation

◆ result

DtDetonationResult makVre::DtProjectileDetonationResult::result

The collision result.

Enumeration indicating what happened when the projectile terminated (e.g., entity hit, terrain hit, max range reached, etc.).

◆ rangeToTarget

double makVre::DtProjectileDetonationResult::rangeToTarget

The distance to the target in meters.

The distance from the projectile's origin to the target that was hit. Only meaningful when a target was actually hit.

◆ targetEntity

DtSimObjectReference makVre::DtProjectileDetonationResult::targetEntity

Reference to the entity that was hit.

Contains a reference to the entity that was hit by the projectile, or an invalid reference if no entity was hit (e.g., terrain hit or max range reached).

◆ detonationPosition

DtVector makVre::DtProjectileDetonationResult::detonationPosition

The position where the detonation occurred.

The 3D position in local coordinates where the projectile terminated, whether by hitting something or reaching its maximum range.


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