swiftlys2/docs/api/releases/features/ai/
API Reference › Services

ITraceManager

Interface
Namespace: SwiftlyS2.Shared.Services · Assembly: SwiftlyS2.CS2.dll
public interface ITraceManager
View source

Methods

TracePlayerBBox(in Vector, in Vector, in BBox_t, in TraceParams?)

Performs a collision trace of a player-sized bounding box from the specified start position to the end position, using the given filter and bounding box dimensions. The result of the trace is stored in the provided trace object.

TraceResult TracePlayerBBox(in Vector start, in Vector end, in BBox_t bounds, in TraceParams? param = null)
Parameters

TraceShapeAngle(in Vector, in QAngle, in TraceParams?)

Traces from start towards angle with the provided shape options.

TraceResult TraceShapeAngle(in Vector start, in QAngle angle, in TraceParams? param = null)
Parameters
  • startVectorTrace start position.
  • angleQAngleTrace direction.
  • paramTraceParams?optionalOptional trace params for ray type and filtering.

TraceShapeAngle(in Vector, in QAngle, float, in TraceParams?)

Traces from start towards angle with the provided shape options.

TraceResult TraceShapeAngle(in Vector start, in QAngle angle, float maxDistance = 8192, in TraceParams? param = null)
Parameters
  • startVectorTrace start position.
  • angleQAngleTrace direction.
  • maxDistancefloatoptionalMaximum distance to trace.
  • paramTraceParams?optionalOptional trace params for ray type and filtering.

TraceShapeLine(in Vector, in Vector, in TraceParams?)

Traces from start to end with the provided shape options.

TraceResult TraceShapeLine(in Vector start, in Vector end, in TraceParams? param = null)
Parameters
  • startVectorTrace start position.
  • endVectorTrace end position.
  • paramTraceParams?optionalOptional trace params for ray type and filtering.