Plane Take-Off with HUD Text
This model is a variant of the vrtkoff example that shows also how to display signal values as text in the virtual scene and a simple Head-Up Display (HUD).
The text is sent to the virtual world as Simulink® string signal, composed from the numeric input values using the format string (see sprintf for more information) and sent to the 'string' field of the corresponding Text node in the world. Individual lines of the MFString field are separated by the newline character in the format string.
The HUD behavior (maintaining constant relative position between the user and the Text node) is achieved by defining a ProximitySensor that senses user position and orientation as it navigates through the scene and routing this information to the translation and rotation of HUD object - in this case a VRML Transform that contains the Text node.