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

CharacterLength counterpart: relative=1 scales with character height, relative=0 uses world units. More...

#include <rapier.h>

Data Fields

R2Real value
 Nonnegative length: a fraction of the character shape height when relative is 1, a world-space length otherwise.
R2Bool relative
 1 scales value by the character shape size; 0 uses an absolute length.

Detailed Description

CharacterLength counterpart: relative=1 scales with character height, relative=0 uses world units.

Field Documentation

◆ relative

R2Bool R2CharacterLength::relative

1 scales value by the character shape size; 0 uses an absolute length.

◆ value

R2Real R2CharacterLength::value

Nonnegative length: a fraction of the character shape height when relative is 1, a world-space length otherwise.


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