|
Rapier C — 3D / f32 0.36.0+c.0
|
Copyable collider construction data. More...
#include <rapier.h>
Data Fields | |
| struct R3ShapeDesc | shape |
| Non-owning shape description; build/insert consumes its views synchronously. | |
| struct R3Pose | position |
| Pose relative to the parent body; world-space for a collider without a parent. | |
| uint32_t | massMode |
| R3_MASS_DENSITY, R3_MASS_TOTAL, or R3_MASS_PROPERTIES. | |
| R3Real | density |
| Nonnegative mass per unit volume. | |
| R3Real | mass |
| Mass; nonnegative when supplied as input. | |
| struct R3MassProperties | massProperties |
| Explicit local mass and inertia when massMode selects them. | |
| R3Real | friction |
| Nonnegative friction coefficient. | |
| R3Real | restitution |
| Nonnegative restitution coefficient. | |
| uint32_t | frictionCombineRule |
| R3_COMBINE_AVERAGE, MIN, MULTIPLY, MAX, CLAMPED_SUM, or GEOMETRIC_MEAN. | |
| uint32_t | restitutionCombineRule |
| R3_COMBINE_AVERAGE, MIN, MULTIPLY, MAX, CLAMPED_SUM, or GEOMETRIC_MEAN. | |
| R3Bool | isSensor |
| 1 detects intersections without generating contact forces. | |
| R3Bool | enabled |
| Whether this setting/object is enabled (0 or 1). | |
| struct R3InteractionGroups | collisionGroups |
| Groups controlling collision detection. | |
| struct R3InteractionGroups | solverGroups |
| Groups controlling contact-force solving. | |
| uint16_t | activeCollisionTypes |
| Bitmask of body-type pairs allowed to collide. | |
| uint32_t | activeHooks |
| Hook flags enabling pair filtering/contact modification. | |
| uint32_t | activeEvents |
| R3_COLLISION_EVENTS and/or R3_CONTACT_FORCE_EVENTS. | |
| R3Real | contactForceEventThreshold |
| Nonnegative force threshold for force events. | |
| R3Real | contactSkin |
| Nonnegative extra separation distance around the collider. | |
| struct R3UserData | userData |
| Application data; Rapier does not own pointers encoded in it. | |
Copyable collider construction data.
Shape inputs are borrowed, never owned.
| uint16_t R3ColliderDesc::activeCollisionTypes |
Bitmask of body-type pairs allowed to collide.
| uint32_t R3ColliderDesc::activeEvents |
R3_COLLISION_EVENTS and/or R3_CONTACT_FORCE_EVENTS.
| uint32_t R3ColliderDesc::activeHooks |
Hook flags enabling pair filtering/contact modification.
| struct R3InteractionGroups R3ColliderDesc::collisionGroups |
Groups controlling collision detection.
| R3Real R3ColliderDesc::contactForceEventThreshold |
Nonnegative force threshold for force events.
| R3Real R3ColliderDesc::contactSkin |
Nonnegative extra separation distance around the collider.
| R3Real R3ColliderDesc::density |
Nonnegative mass per unit volume.
| R3Bool R3ColliderDesc::enabled |
Whether this setting/object is enabled (0 or 1).
| R3Real R3ColliderDesc::friction |
Nonnegative friction coefficient.
| uint32_t R3ColliderDesc::frictionCombineRule |
R3_COMBINE_AVERAGE, MIN, MULTIPLY, MAX, CLAMPED_SUM, or GEOMETRIC_MEAN.
| R3Bool R3ColliderDesc::isSensor |
1 detects intersections without generating contact forces.
| R3Real R3ColliderDesc::mass |
Mass; nonnegative when supplied as input.
| uint32_t R3ColliderDesc::massMode |
R3_MASS_DENSITY, R3_MASS_TOTAL, or R3_MASS_PROPERTIES.
| struct R3MassProperties R3ColliderDesc::massProperties |
Explicit local mass and inertia when massMode selects them.
| struct R3Pose R3ColliderDesc::position |
Pose relative to the parent body; world-space for a collider without a parent.
| R3Real R3ColliderDesc::restitution |
Nonnegative restitution coefficient.
| uint32_t R3ColliderDesc::restitutionCombineRule |
R3_COMBINE_AVERAGE, MIN, MULTIPLY, MAX, CLAMPED_SUM, or GEOMETRIC_MEAN.
| struct R3ShapeDesc R3ColliderDesc::shape |
Non-owning shape description; build/insert consumes its views synchronously.
| struct R3InteractionGroups R3ColliderDesc::solverGroups |
Groups controlling contact-force solving.
| struct R3UserData R3ColliderDesc::userData |
Application data; Rapier does not own pointers encoded in it.