Class DebugRenderBuffers

The vertex and color buffers for debug-redering the physics scene.

Hierarchy

  • DebugRenderBuffers

Constructors

Properties

Constructors

  • Parameters

    • vertices: Float32Array
    • colors: Float32Array

    Returns DebugRenderBuffers

Properties

colors: Float32Array

The color buffer. There is one color per vertex, and each color has four consecutive components (in RGBA format).

vertices: Float32Array

The lines to render. This is a flat array containing all the lines to render. Each line is described as two consecutive point. Each point is described as two (in 2D) or three (in 3D) consecutive floats. For example, in 2D, the array: [1, 2, 3, 4, 5, 6, 7, 8] describes the two segments [[1, 2], [3, 4]] and [[5, 6], [7, 8]].

Generated using TypeDoc