SceneTraceResultclass

object→SceneTraceResult
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.SceneTraceResult

Methods3

Showing 3 methods

public bool HasTag(Sandbox.StringToken tag)PUBLIC

Returns true if the hit shape has this tag.

ParameterTypeDescription
tagStringToken—
Returns:bool—

Properties2

Showing 2 properties

public float Sandbox.SceneTraceResult.Distance { get; set; }PUBLICGETSET

The distance between start and end positions.

Returns:float—

public string[] Sandbox.SceneTraceResult.Tags { get; set; }PUBLICGETSETOBSOLETE

The tags that the hit shape had.

Obsolete: Use HasTag instead.

Returns:string[]—

On this page