API ReferenceSandbox
PhysicsTraceResultclass
object→PhysicsTraceResult
Methods1
Showing 1 methods
public bool HasTag(Sandbox.StringToken tag)
Returns true if the hit shape has this tag.
| Parameter | Type | Description |
|---|---|---|
| tag | StringToken | — |
Returns:
bool—No results match this filter.
Properties3
Showing 3 properties
public int Sandbox.PhysicsTraceResult.Bone { get; set; }
The id of the hit bone (either from hitbox or physics shape)
Returns:
int—public float Sandbox.PhysicsTraceResult.Distance { get; set; }
The distance between start and end positions.
Returns:
float—public string[] Sandbox.PhysicsTraceResult.Tags { get; set; }
The tags that the hit shape had.
Obsolete: Use HasTag instead.
Returns:
string[]—No results match this filter.