Rapier C — 2D / f64 0.36.0+c.0
Loading...
Searching...
No Matches
R2DebugRenderStyle Struct Reference

Debug-render colors and sizes. More...

#include <rapier.h>

Data Fields

uint32_t subdivisions
 Positive number of subdivisions approximating curved shapes.
uint32_t border_subdivisions
 Positive number of subdivisions approximating the borders of round shapes.
float collider_dynamic_color [4]
 Color of colliders attached to dynamic bodies.
float collider_fixed_color [4]
 Color of colliders attached to fixed bodies.
float collider_kinematic_color [4]
 Color of colliders attached to kinematic bodies.
float collider_parentless_color [4]
 Color of colliders without a parent body.
float impulse_joint_anchor_color [4]
 Color of the lines from a body's center of mass to its impulse-joint anchors.
float impulse_joint_separation_color [4]
 Color of the line between the two anchors of an impulse joint.
float multibody_joint_anchor_color [4]
 Color of the lines from a body's center of mass to its multibody-joint anchors.
float multibody_joint_separation_color [4]
 Color of the line between the two anchors of a multibody joint.
float sleep_color_multiplier [4]
 Color multiplier for entities of sleeping bodies.
float sleep_eligible_color_multiplier [4]
 Color multiplier for entities of awake bodies eligible for sleep.
float disabled_color_multiplier [4]
 Color multiplier for entities of disabled bodies.
R2Real rigid_body_axes_length
 Nonnegative length of the rendered body axes.
float contact_depth_color [4]
 Color of the segments joining the two points of a contact.
float contact_normal_color [4]
 Color of the contact normals.
R2Real contact_normal_length
 Nonnegative length of the contact normals.
float soft_body_element_color [4]
 Color of soft-body elements.
float soft_body_slack_color [4]
 Color of unloaded soft-body elements when coloring them by load.
float soft_body_loaded_color [4]
 Color of soft-body elements at their tear threshold when coloring them by load.
float soft_body_frame_color [4]
 Color of the soft-body cluster frames.
float collider_aabb_color [4]
 Color of the collider bounding boxes.
float vertex_pseudo_normal_color [4]
 Color of the vertex pseudo-normals of triangle meshes and polylines.
float edge_pseudo_normal_color [4]
 Color of the edge pseudo-normals of triangle meshes (3D only).
R2Real pseudo_normal_length
 Nonnegative length of the pseudo-normals.
float volume_contact_normal_color [4]
 Color of the normals of soft-body volume contacts.
float volume_gradient_color [4]
 Color of the volume gradients drawn at the particles of a volume constraint.

Detailed Description

Debug-render colors and sizes.

Colors are HSLA: hue in degrees, then saturation, lightness and alpha in [0, 1]; multipliers scale each component. Initialize with r2DefaultDebugRenderStyle.

Field Documentation

◆ border_subdivisions

uint32_t R2DebugRenderStyle::border_subdivisions

Positive number of subdivisions approximating the borders of round shapes.

◆ collider_aabb_color

float R2DebugRenderStyle::collider_aabb_color[4]

Color of the collider bounding boxes.

◆ collider_dynamic_color

float R2DebugRenderStyle::collider_dynamic_color[4]

Color of colliders attached to dynamic bodies.

◆ collider_fixed_color

float R2DebugRenderStyle::collider_fixed_color[4]

Color of colliders attached to fixed bodies.

◆ collider_kinematic_color

float R2DebugRenderStyle::collider_kinematic_color[4]

Color of colliders attached to kinematic bodies.

◆ collider_parentless_color

float R2DebugRenderStyle::collider_parentless_color[4]

Color of colliders without a parent body.

◆ contact_depth_color

float R2DebugRenderStyle::contact_depth_color[4]

Color of the segments joining the two points of a contact.

◆ contact_normal_color

float R2DebugRenderStyle::contact_normal_color[4]

Color of the contact normals.

◆ contact_normal_length

R2Real R2DebugRenderStyle::contact_normal_length

Nonnegative length of the contact normals.

◆ disabled_color_multiplier

float R2DebugRenderStyle::disabled_color_multiplier[4]

Color multiplier for entities of disabled bodies.

◆ edge_pseudo_normal_color

float R2DebugRenderStyle::edge_pseudo_normal_color[4]

Color of the edge pseudo-normals of triangle meshes (3D only).

◆ impulse_joint_anchor_color

float R2DebugRenderStyle::impulse_joint_anchor_color[4]

Color of the lines from a body's center of mass to its impulse-joint anchors.

◆ impulse_joint_separation_color

float R2DebugRenderStyle::impulse_joint_separation_color[4]

Color of the line between the two anchors of an impulse joint.

◆ multibody_joint_anchor_color

float R2DebugRenderStyle::multibody_joint_anchor_color[4]

Color of the lines from a body's center of mass to its multibody-joint anchors.

◆ multibody_joint_separation_color

float R2DebugRenderStyle::multibody_joint_separation_color[4]

Color of the line between the two anchors of a multibody joint.

◆ pseudo_normal_length

R2Real R2DebugRenderStyle::pseudo_normal_length

Nonnegative length of the pseudo-normals.

◆ rigid_body_axes_length

R2Real R2DebugRenderStyle::rigid_body_axes_length

Nonnegative length of the rendered body axes.

◆ sleep_color_multiplier

float R2DebugRenderStyle::sleep_color_multiplier[4]

Color multiplier for entities of sleeping bodies.

◆ sleep_eligible_color_multiplier

float R2DebugRenderStyle::sleep_eligible_color_multiplier[4]

Color multiplier for entities of awake bodies eligible for sleep.

◆ soft_body_element_color

float R2DebugRenderStyle::soft_body_element_color[4]

Color of soft-body elements.

◆ soft_body_frame_color

float R2DebugRenderStyle::soft_body_frame_color[4]

Color of the soft-body cluster frames.

◆ soft_body_loaded_color

float R2DebugRenderStyle::soft_body_loaded_color[4]

Color of soft-body elements at their tear threshold when coloring them by load.

◆ soft_body_slack_color

float R2DebugRenderStyle::soft_body_slack_color[4]

Color of unloaded soft-body elements when coloring them by load.

◆ subdivisions

uint32_t R2DebugRenderStyle::subdivisions

Positive number of subdivisions approximating curved shapes.

◆ vertex_pseudo_normal_color

float R2DebugRenderStyle::vertex_pseudo_normal_color[4]

Color of the vertex pseudo-normals of triangle meshes and polylines.

◆ volume_contact_normal_color

float R2DebugRenderStyle::volume_contact_normal_color[4]

Color of the normals of soft-body volume contacts.

◆ volume_gradient_color

float R2DebugRenderStyle::volume_gradient_color[4]

Color of the volume gradients drawn at the particles of a volume constraint.


The documentation for this struct was generated from the following file: