![]() |
VR-Forces Developer's Guide
|
This document describes the public API changes in the vrfModelManager library between VR-Forces 5.2 and 5.3.
It covers the following public header:
Changes that are internal to an implementation or limited to comments are not listed.
The protected virtual fillInModelInformationFor now also fills in subsystem damage hit zone information. A HitZoneInformation& out-parameter was inserted after the ArticulatedParts& parameter, ahead of the existing defaulted parameters:
This is a source-breaking change for any class that derives from DtVrfModelManager and overrides this method. The override must be updated to the new signature; an override that keeps the old parameter list will no longer bind to the base declaration. Call sites must supply a HitZoneInformation object, which may be discarded if hit zone data is not needed.
A new struct describes a single subsystem damage hit zone in body coordinates:
A public typedef maps a hit zone index to its description:
Two public virtual query methods return the hit zones for a model. They parallel the existing articulatedPartsFor overloads:
A protected virtual method extracts hit zone information from a loaded model. Derived classes may override it to change how hit zones are derived:
vrfModelManager.h now includes vrvCore/DtModelSemanticsMapper.h. No action is required, but the additional transitive include may affect translation units that define conflicting symbols.
| Header | Breaking | Additions |
|---|---|---|
vrfModelManager.h | fillInModelInformationFor gained a HitZoneInformation& parameter | DtVrfModelSubSystemDamageHitZone, HitZoneInformation typedef, hitZoneInformationFor overloads, subSystemDamageHitZoneInformationFor |
Return to VR-Forces 5.3 API Migration Guide.
[Home]