Class Rubikon
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Ray tracing against Rubikon physics collision shapes including meshes and hulls.
public class RubikonInheritance
Constructors
Rubikon(PhysAggregateData)
Initializes Rubikon by parsing all mesh and hull shapes from the physics aggregate data.
public Rubikon(PhysAggregateData physicsData)Parameters
physicsData PhysAggregateData
Source physics aggregate containing shapes and collision attributes.
Properties
HullTree
Gets the BVH acceleration structure built over .
public Mesh.Node[] HullTree { get; }Property Value
Hulls
Gets the convex hull collision shapes available for tracing.
public Rubikon.PhysicsHullData[] Hulls { get; }Property Value
Meshes
Gets the triangle mesh collision shapes available for tracing.
public Rubikon.PhysicsMeshData[] Meshes { get; }Property Value
Methods
TraceAABB(Vector3, Vector3, AABB, string)
Sweeps an axis-aligned bounding box through the physics world and returns the closest hit.
public Rubikon.TraceResult TraceAABB(Vector3 from, Vector3 to, AABB aabb, string collisionName)Parameters
from Vector3
Sweep start position (center of the AABB).
to Vector3
Sweep end position.
aabb AABB
Box whose size determines the half-extents of the swept volume.
collisionName string
Collision group name used to filter shapes (e.g. "player").
Returns
The closest , or an empty result if nothing was hit.
TraceRay(Vector3, Vector3)
Traces a ray against all physics shapes and returns the closest hit.
public Rubikon.TraceResult TraceRay(Vector3 from, Vector3 to)Parameters
from Vector3
Ray start position.
to Vector3
Ray end position.
Returns
The closest , or an empty result if nothing was hit.

