Overview
The Enable Ray Cast action enables ray casting input mode, where learners use a ray or pointer to interact with objects at a distance rather than direct touch or click. The pointer projects from a fixed point (usually the center of the screen or from the learner’s hand) and intersects with objects in the scene. Ray casting is useful for interactions where direct clicking isn’t appropriate or where pointer-style input provides better interaction feedback.When to Use
- Pointer-based input — Learners interact through a crosshair or pointer rather than direct object clicking
- Fixed position interactions — The learner is locked in place and must interact via pointer
- AR/VR scenarios — Ray casting is the standard interaction method in immersive environments
- Mobile compatibility — Ray casting often provides more reliable interaction on touch devices
- Accessibility — Pointer-based input may be more accessible for certain learners
- Specific interaction patterns — Some training scenarios require pointing-based feedback rather than direct touch
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| None | — | — | No parameters. Enable Ray Cast activates pointer-based input mode |
Example: Activate Ray Casting
Ray Casting vs. Direct Click Interaction
- Direct Click (Default)
- Ray Cast (Pointer)
- Standard interaction mode for browser-based trainings
- User clicks/taps directly on objects in the 3D scene
- Works with mouse, touch, and trackpad
- Intuitive for desktop and mobile users
- Objects respond to clicks on their visual surface
Best Practices
Use sparingly
Most web-based trainings work fine with default click interaction. Use ray casting only when the scenario specifically benefits from pointer input.
Test interaction feedback
Verify that objects clearly respond to pointer intersection — learners need clear visual cues.
Consider mobile experience
Ray casting behavior may feel different on touch devices. Test thoroughly.
Combine with positioning actions
Pair with Teleport User To and Disable Self Teleport to lock the learner in a specific position for ray casting.
Common Patterns
Pointer-Based Selection
Inspection from Fixed Viewpoint
AR/Mixed Reality Interaction
Distance-Based Selection
Important Notes
- Browser support — Ray casting requires WebGL and modern browser capabilities
- Desktop vs. mobile — Ray casting works on both, but feel and feedback may differ
- Not default for web — Most Creator Studio trainings use standard click interaction; ray casting is for specific scenarios
- Combination with other inputs — Can be combined with Disable Self Teleport and Teleport User To for full control
Related Actions
- Disable Self Teleport — Lock learner position when using ray cast pointer
- Teleport User To — Position learner at the optimal viewing point for ray casting
- Set Interactable Objects — Restrict which objects respond to ray cast input
- Show Panel — Explain ray casting interaction method to learners

