![]() |
VR-Forces 4.2 Class Documentation
|
The Add Attribute example demonstrates the following:
The Add Attribute example adds a new member (mass) to the entity state repository. It also adds encoders and decoders to send/receive that information over the network. When running the example, make sure to copy the VrfExtend.fed to the bin directory. When running in HLA1516, make sure RTI_forceFullCompliance is not on in your rid.mtl and that you're not turning it on using the RTI Assistant. In the launcher, set Federation Name to "VrfExtend" and set FED File Name to "VrfExtend.fed".
Since this example is loaded as a plugin, it can be used in conjunction with the released VR-Forces application
In the launcher, set the addAttribute plugin to load, set Federation Name to "VrfExtend", and set the FED File Name to "VrfExtend.fed", then start VR Forces.
To view the new behavior:
The new attribute, 'Mass' will appear under this tab.
| configFomMapper | The routines that encode/decode the mass that is sent as part of the new state repository. |
| MyEntityStateRep | The extended entity state repository that contains the new mass variable. |
| MyIndividualLocalEntityNetInterface | This extension of the local net inferface takes the mass from the VRF entity state repository and puts it into the new MyEntityStateRep state repository. |
| MyIndividualRemoteEntityNetInterface | This extension of the remote net interface takes information read from the network and put into the new MyEntityStateRep and places it into the VRF entity state repository. |