s&box docs

public sealed struct Editor.Trace

Trace for tools, not to be confused with `Sandbox.SceneTrace`

Broader workflow and conceptual references connected to this API.

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.Trace SkipToolsMaterials()

Don't hit tools materials (materials with the `tools.toolsmaterial` attribute)

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.Trace

On this page