Api Editor Trace
struct

Trace

public sealed struct Trace

Trace for tools, not to be confused with SceneTrace

Methods

static Trace Ray(Vector3 from, Vector3 to)

Create a trace ray.

from — Start position in world space.
to — End position in world space.
Trace MeshesOnly()

Only trace against hammer mesh geometry ( CMapMesh nodes )

Trace SkipToolsMaterials()

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

TraceResult Run(MapWorld world)

Runs a trace against given world.

Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.Trace