PhysicsTraceResultclass

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

Methods1

Showing 1 methods

public bool HasTag(Sandbox.StringToken tag)PUBLIC

Returns true if the hit shape has this tag.

ParameterTypeDescription
tagStringToken—
Returns:bool—

Properties3

Showing 3 properties

public int Sandbox.PhysicsTraceResult.Bone { get; set; }PUBLICGETSET

The id of the hit bone (either from hitbox or physics shape)

Returns:int—

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

The distance between start and end positions.

Returns:float—

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

The tags that the hit shape had.

Obsolete: Use HasTag instead.

Returns:string[]—

On this page