VR-Engage  2.2
Loading...
Searching...
No Matches
customProjectile.h File Reference
Include dependency graph for customProjectile.h:

Go to the source code of this file.

Classes

class  DtCustomProjectile
 

Variables

constexpr char DtCustomProjectileType [] = "DtCustomProjectile"
 

Detailed Description

DtCustomProjectile extends the standard DtProjectile class to add custom behavior and an internal time-in-flight state. This example demonstrates the complete pattern for creating custom munition types in VR-Forces, including update logic and factory integration.

Key Patterns Demonstrated:

  • Extending VR-Forces projectile base class
  • Tracking additional runtime state in a custom projectile
  • Overriding update() for custom physics or behavior
  • Factory creator pattern for projectile instantiation

Variable Documentation

◆ DtCustomProjectileType

char DtCustomProjectileType[] = "DtCustomProjectile"
constexpr

Type identifier string for custom projectile class Used by factory system to create instances and for MTL file serialization.