Traceclass

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

objectTrace
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public sealed struct Editor.Trace

Methods4

Showing 4 methods

public Editor.Trace MeshesOnly()PUBLIC

Only trace against hammer mesh geometry ( CMapMesh nodes )

Returns:Trace

public static Editor.Trace Ray(Vector3 from, Vector3 to)PUBLICSTATIC

Create a trace ray.

ParameterTypeDescription
fromVector3Start position in world space.
toVector3End position in world space.
Returns:Trace

public Editor.Trace SkipToolsMaterials()PUBLIC

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

Returns:Trace

On this page