<SimMission.CameraTargetTrigger>

This element can be used to define a trigger that will be fired when something is in the actual camera frustrum. This element is used as part of the XML file used to generate a mission. Full information on this file can be found here:

 

This element has the following attributes:

 

Attribute Description Type Required
InstanceId The unique ID for the trigger action, as a GUID enclosed in {}. String Yes
VRDependency When set to TRUE, this sets the trigger action as being VR dependent. Default is FALSE. Bool No

 

This element can also contain any of the following sub-elements, sometimes multiple times: <Descr>, <Activated>, <DefaultActivated>, <Latched>, <OneShot>, <OnEnterActions>, <OnExitActions>, <AttachedWorldPosition>, <InitWorldPosition>, <AttachedWorldObject>, <InitRelativeToWorldObject>, <RelativePosition>, <SphereRadius>, <WholeSphere>, <ThroughWindShield>, <FrustrumScaleX>, <FrustrumScaleY>, <ShowMarker>.

 

 

<SphereRadius>

This sub-element of <SimMission.CameraTargetTrigger> has no attributes and simply defines the radius of the sphere - in meters - that will be used to fire the camera trigger. This element has no default value and must be included as part of the trigger definition.

 

 

<WholeSphere>

This sub-element of <SimMission.CameraTargetTrigger> has no attributes and is used to tell the simulation whether the whole sphere should be in the camera frustrum to fire the trigger (set to TRUE) or only part of the sphere (set to FALSE). Default value is FALSE.

 

 

<ThroughWindShield>

This sub-element of <SimMission.CameraTargetTrigger> has no attributes and is used to tell the simulation whether to detect the trigger if there is a collision with the windshield between the camera and the trigger sphere. When set to TRUE the trigger will not be fired of there is a collision, and if set to FALSE then it will. Default value is FALSE.

 

 

<FrustrumScaleX>

This sub-element of <SimMission.CameraTargetTrigger> has no attributes and is used to set the scale of the camera frustrum along the X axis. The default value for this element is 1.

 

 

<FrustrumScaleY>

This sub-element of <SimMission.CameraTargetTrigger> has no attributes and is used to set the scale of the camera frustrum along the Y axis. The default value for this element is 1.

 

 

<ShowMarker>

This sub-element of <SimMission.CameraTargetTrigger> has no attributes and is used to tell the simulation whether to show a marker to the user (set to TRUE) or not (set to FALSE). Default value is FALSE.