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

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.

Detailed Description

Copyable collider construction data.

Shape inputs are borrowed, never owned.

Field Documentation

◆ activeCollisionTypes

uint16_t R3ColliderDesc::activeCollisionTypes

Bitmask of body-type pairs allowed to collide.

◆ activeEvents

uint32_t R3ColliderDesc::activeEvents

R3_COLLISION_EVENTS and/or R3_CONTACT_FORCE_EVENTS.

◆ activeHooks

uint32_t R3ColliderDesc::activeHooks

Hook flags enabling pair filtering/contact modification.

◆ collisionGroups

struct R3InteractionGroups R3ColliderDesc::collisionGroups

Groups controlling collision detection.

◆ contactForceEventThreshold

R3Real R3ColliderDesc::contactForceEventThreshold

Nonnegative force threshold for force events.

◆ contactSkin

R3Real R3ColliderDesc::contactSkin

Nonnegative extra separation distance around the collider.

◆ density

R3Real R3ColliderDesc::density

Nonnegative mass per unit volume.

◆ enabled

R3Bool R3ColliderDesc::enabled

Whether this setting/object is enabled (0 or 1).

◆ friction

R3Real R3ColliderDesc::friction

Nonnegative friction coefficient.

◆ frictionCombineRule

uint32_t R3ColliderDesc::frictionCombineRule

R3_COMBINE_AVERAGE, MIN, MULTIPLY, MAX, CLAMPED_SUM, or GEOMETRIC_MEAN.

◆ isSensor

R3Bool R3ColliderDesc::isSensor

1 detects intersections without generating contact forces.

◆ mass

R3Real R3ColliderDesc::mass

Mass; nonnegative when supplied as input.

◆ massMode

uint32_t R3ColliderDesc::massMode

R3_MASS_DENSITY, R3_MASS_TOTAL, or R3_MASS_PROPERTIES.

◆ massProperties

struct R3MassProperties R3ColliderDesc::massProperties

Explicit local mass and inertia when massMode selects them.

◆ position

struct R3Pose R3ColliderDesc::position

Pose relative to the parent body; world-space for a collider without a parent.

◆ restitution

R3Real R3ColliderDesc::restitution

Nonnegative restitution coefficient.

◆ restitutionCombineRule

uint32_t R3ColliderDesc::restitutionCombineRule

R3_COMBINE_AVERAGE, MIN, MULTIPLY, MAX, CLAMPED_SUM, or GEOMETRIC_MEAN.

◆ shape

struct R3ShapeDesc R3ColliderDesc::shape

Non-owning shape description; build/insert consumes its views synchronously.

◆ solverGroups

struct R3InteractionGroups R3ColliderDesc::solverGroups

Groups controlling contact-force solving.

◆ userData

struct R3UserData R3ColliderDesc::userData

Application data; Rapier does not own pointers encoded in it.


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