Struct Rubikon.AABBTraceContext ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Precomputed sweep data for an axis-aligned box trace.
csharp
public readonly struct Rubikon.AABBTraceContextConstructors ​
AABBTraceContext(Vector3, Vector3, Vector3) ​
Initializes a new AABB trace context from start/end positions and box half-extents.
csharp
public AABBTraceContext(Vector3 start, Vector3 end, Vector3 halfExtents)Parameters ​
start Vector3
Sweep start position.
end Vector3
Sweep end position.
halfExtents Vector3
Half-extents of the swept box.
Properties ​
Direction ​
Gets the normalized sweep direction.
csharp
public Vector3 Direction { get; }Property Value ​
End ​
Gets the end position of the sweep.
csharp
public Vector3 End { get; }Property Value ​
HalfExtents ​
Gets the half-extents of the swept AABB.
csharp
public Vector3 HalfExtents { get; }Property Value ​
Length ​
Gets the total sweep length.
csharp
public float Length { get; }Property Value ​
Origin ​
Gets the start position of the sweep.
csharp
public Vector3 Origin { get; }
