Skip to content

Engine → Physics → physics_debug_draw.h

physics_debug_draw

Syntax

class CONJURE_API physics_debug_draw

Constructors

AccessSignatureDescription
publicphysics_debug_draw();

Important

Copy constructor and assignment has been deleted.

Destructors

AccessSignatureDescription
publicvirtual ~physics_debug_draw();

Functions

Public

line

virtual void line(
    const math::vec3 &from,
    const math::vec3 &to,
    u32 rgba) = 0;

A world-space line segment.

text

virtual void text(
    const math::vec3 &position,
    std::string_view text,
    u32 rgba,
    f32 height);

A world-space label of the given height in metres. The default implementation draws nothing.

triangle

virtual void triangle(
    const math::vec3 &a,
    const math::vec3 &b,
    const math::vec3 &c,
    u32 rgba) = 0;

A world-space filled triangle.