VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfplan Library API Changes

Table of Contents

This document describes the public API changes in the vrfplan 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.

Breaking Changes

DtCreateObjectCommand ground clamping replaced by altitude above terrain

The boolean ground-clamping property of DtCreateObjectCommand was replaced by a pair of properties that express an altitude relative to the terrain surface. The accessors were renamed and a new value accessor was added:

5.2 declaration 5.3 declaration
virtual bool clampedToGround() const virtual bool useAltitudeAboveTerrain() const
virtual void setClampedToGround(bool value) virtual void setUseAltitudeAboveTerrain(bool value)
*(none)* virtual double altitudeAboveTerrain() const
*(none)* virtual void setAltitudeAboveTerrain(double d)
// 5.2
cmd->setClampedToGround(true);
bool clamped = cmd->clampedToGround();
// 5.3
cmd->setUseAltitudeAboveTerrain(true);
cmd->setAltitudeAboveTerrain(0.0);
bool clamped = cmd->useAltitudeAboveTerrain();

The 5.2 behavior of clamping an entity directly to the ground corresponds to enabling useAltitudeAboveTerrain with an altitudeAboveTerrain of zero. As before, the properties apply only to entities.

DtCreateObjectCommand protected members changed

Classes that derive from DtCreateObjectCommand and reference its protected reader/writer members are affected. The member backing the old property was replaced:

// 5.2
DtRwBoolean myClampedToGround;
// 5.3
DtRwBoolean myClampAboveTerrain;
DtRwReal myAltitudeAboveTerrain;

Because these members participate in command serialization, a derived command that read or wrote myClampedToGround directly must be updated to the new members.

Additions

See altitudeAboveTerrain and setAltitudeAboveTerrain in the table above. These have no 5.2 equivalent and allow an object to be created at a specified height above the terrain surface rather than only flush with it.

Summary of Header Changes

Header Breaking Additions
createObjectCommand.h clampedToGround and setClampedToGround replaced by useAltitudeAboveTerrain and setUseAltitudeAboveTerrain; protected myClampedToGround replaced by myClampAboveTerrain and myAltitudeAboveTerrain altitudeAboveTerrain, setAltitudeAboveTerrain

Return to VR-Forces 5.3 API Migration Guide.

[Home]


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)