![]() |
VR-Forces 4.8 Class Documentation
|
The Decide to Give Up example demonstrates the following:
The Decide to Give Up example installs a new version of the DtGroundMoveToControllerComponent to give up the task after a certain amount of sim time. This example can be used as a starting point for other type of reasons to give up on a task.
Since this example is loaded as a plugin, it can be used in conjunction with the released VR-Forces application
This example demonstrates how to add 'decide to give' up logic to an existing behavior.
In the Launcher, click the Plug-ins button to bring up the Plug-ins Selection dialog. Enable the plugin. Then launch VR-Forces.
To view the new behavior:
Observe the output in the entity's Object Console window. After 10 seconds of simulation time, the enitty will stop moving and there will be messages printed to the console indicating that the entity has 'given up on the task'.
| DerivedMoveToController | This subclass of DtGroundMoveToControllerComponent gives up on the movement task after a certain amount of simulation time. |