Struct Rubikon.AABBTraceContext ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Precomputed sweep data for an axis-aligned box trace.
public readonly struct Rubikon.AABBTraceContextConstructors ​
AABBTraceContext(Vector3, Vector3, Vector3, TraceOptions) ​
Initializes a new AABB trace context from start/end positions and box half-extents.
public AABBTraceContext(Vector3 start, Vector3 end, Vector3 halfExtents, Rubikon.TraceOptions options = TraceOptions.None)Parameters ​
start Vector3
Sweep start position.
end Vector3
Sweep end position.
halfExtents Vector3
Half-extents of the swept box.
options Rubikon.TraceOptions
Optional behaviors of the trace.
Properties ​
ComputeContactPoint ​
Gets a value indicating whether hits also compute .
public bool ComputeContactPoint { get; }Property Value ​
DetectStartSolid ​
Gets a value indicating whether triangles are tested for overlap at the start position (reported as ).
public bool DetectStartSolid { get; }Property Value ​
Direction ​
Gets the normalized sweep direction.
public Vector3 Direction { get; }Property Value ​
HalfExtents ​
Gets the half-extents of the swept AABB.
public Vector3 HalfExtents { get; }Property Value ​
Length ​
Gets the total sweep length.
public float Length { get; }Property Value ​
Options ​
Gets the optional behaviors of this trace.
public Rubikon.TraceOptions Options { get; }Property Value ​
Origin ​
Gets the start position of the sweep.
public Vector3 Origin { get; }Property Value ​
Ray ​
Gets the sweep center line as a precomputed ray.
public Rubikon.RayTraceContext Ray { get; }
