public sealed struct Editor.Trace
Trace for tools, not to be confused with `Sandbox.SceneTrace`
Related Guides
Broader workflow and conceptual references connected to this API.
There are various interfaces that can be given to components for specific purposes.
ScreenSpace::Trace provides functionality for tracing rays in screen space to compute effects like Dynamic Reflections or any kind of ray in world space. It leverages hierarchical ray marching for efficient performance.
The scope based system works by creating a snapshot of a change set when the scope is entered and another one when the scope is disposed of. The system will automatically take care of restoring the state on undo/redo.
Methods
Showing 4 methods
public Editor.Trace MeshesOnly()
Only trace against hammer mesh geometry ( CMapMesh nodes )
public static Editor.Trace Ray(Vector3 from, Vector3 to)
Create a trace ray.
Parameters
from: Start position in world space.to: End position in world space.
public Editor.TraceResult Run(Editor.MapDoc.MapWorld world)
Runs a trace against given world.
public Editor.Trace SkipToolsMaterials()
Don't hit tools materials (materials with the `tools.toolsmaterial` attribute)
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.Trace |