Class PhysicsTraceDebugRenderer
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Debug visualization for physics traces: draws the player collision hull while player movement is active, and sweeps a small box from the camera to show where it lands.
public class PhysicsTraceDebugRenderer : LineDebugRendererInheritance
object ← LineDebugRenderer ← PhysicsTraceDebugRenderer
Inherited Members
LineDebugRenderer.Clear(), LineDebugRenderer.Upload(List<SimpleVertex>, BufferUsageHint), LineDebugRenderer.RenderLines(bool), LineDebugRenderer.Delete()
Constructors
PhysicsTraceDebugRenderer(RendererContext)
Initializes the renderer and creates GPU resources.
public PhysicsTraceDebugRenderer(RendererContext rendererContext)Parameters
rendererContext RendererContext
Renderer context for loading shaders.
Methods
Render(Rubikon, UserInput, Camera)
Rebuilds and renders the debug geometry for the current frame.
public void Render(Rubikon physics, UserInput input, Camera camera)Parameters
physics Rubikon
Physics world to trace against.
input UserInput
User input providing the player movement state.
camera Camera
Camera the debug trace is fired from.

