Overview
Enable Ray Cast controls the interaction rays from the trainee’s hands on supported headsets. Set Enable Ray Cast to True to enable rays for both hands, or False to disable them. The setting applies to both hands together. There is no separate left-hand or right-hand selection.When to Use
- Enable rays for selection: Allow the trainee to use hand rays to select objects during a step.
- Disable rays after selection: Turn off the rays when the training moves to a phase that does not need them.
Parameters
Configuring the Action
1
Add Enable Ray Cast
Select the step where the ray setting should change. Open On Entry in the Properties panel and add Enable Ray Cast.
2
Choose the setting
Expand the action and set Enable Ray Cast to True or False.
Disabling the Rays
Add another Enable Ray Cast action and set Enable Ray Cast to False. For a selection task contained in one step, place this action in that step’s On Exit actions. If rays are needed across several steps, disable them when that phase ends.Example: Enable Rays During a Selection Step
In a Select the Safety Hazard step, the trainee uses hand rays to select a hazard in the scene. The following step does not need the rays.- In Select the Safety Hazard, add Enable Ray Cast to On Entry and set Enable Ray Cast to True.
- In the same step’s On Exit actions, add Enable Ray Cast and set Enable Ray Cast to False.
Best Practices
- Explain the interaction: Use Show Panel or Show Text to tell the trainee how to use the rays for the task.
- Configure object interactions: Use Set Interactable Objects to enable or disable interactions for the selected objects as needed.
- Plan when rays should change: Add explicit actions at the points where rays should be enabled or disabled.
- Verify on the target headset: Check that both hand rays respond to the configured settings and that the intended objects can be selected.
Related Actions
- Set Interactable Objects — Enable or disable interactions for selected objects
- Show Panel — Present instructions for the selection task
- Show Text — Explain how to use the interaction rays

