![]() |
VR-Forces 5.0.2 Developer's Guide
|
The Add Simulation Command example demonstrates the following:
The Add State Component example adds a new state component to an entity. State components are used to store data for both the current and next frames, double buffered for better multithreaded access. They represent composable chunks of data relevant to the entity itself.
This example demonstrates how to add a new kind of state component.
In the Launcher:
To view the new behavior:
After the example run is completed - remove the previously copied FED File Name (e.g. AddStateComponent_evolved.xml) from the bin64 directory. Restore the previously set FED File Name within the Launcher dialog.
| DtInternalTemperatureStateComponent | The subclass of DtFrameStateInterface that is used to store the internal temperature of an entity. |
| DtTemperatureMonitorActuator | The subclass of DtActuatorComponent that updates the internal temperature of the entity. |
| DtIndividualLocalEntityNetInterfaceWithTemperature | The subclass of DtSimIndividualLocalEntityWithPropertiesNetInterface that copies the temperature from the state component to a network state repository. |
| DtEntityStateRepWithTemperature | The subclass of DtExtEntityStateRepository that adds storage for the temperature attribute for output to the network by VR-Link. |