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

Copyable joint configuration. More...

#include <rapier.h>

Data Fields

struct R3Pose localFrame1
 Joint frame in body 1 local coordinates.
struct R3Pose localFrame2
 Joint frame in body 2 local coordinates.
uint8_t lockedAxes
 Locked joint degrees of freedom; translations precede rotations.
uint8_t limitAxes
 Axis mask enabling corresponding limits entries.
uint8_t motorAxes
 Axis mask enabling corresponding motors entries.
uint8_t coupledAxes
 Axis mask sharing a coupled constraint.
struct R3JointLimits limits [R3_JOINT_DOF_COUNT]
 Axis limits in translation-then-rotation order.
struct R3JointMotor motors [R3_JOINT_DOF_COUNT]
 Axis motors in translation-then-rotation order.
struct R3SpringCoefficients softness
 Spring coefficients for constraint correction.
R3Bool contactsEnabled
 Whether connected bodies may collide.
R3Bool enabled
 Whether this setting/object is enabled (0 or 1).
struct R3UserData userData
 Application data; Rapier does not own pointers encoded in it.

Detailed Description

Copyable joint configuration.

Limits/motors take effect when their axis mask is enabled. Solver impulses are deliberately excluded. Applying data resets cached limit and motor impulses.

Field Documentation

◆ contactsEnabled

R3Bool R3JointDesc::contactsEnabled

Whether connected bodies may collide.

◆ coupledAxes

uint8_t R3JointDesc::coupledAxes

Axis mask sharing a coupled constraint.

◆ enabled

R3Bool R3JointDesc::enabled

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

◆ limitAxes

uint8_t R3JointDesc::limitAxes

Axis mask enabling corresponding limits entries.

◆ limits

struct R3JointLimits R3JointDesc::limits[R3_JOINT_DOF_COUNT]

Axis limits in translation-then-rotation order.

◆ localFrame1

struct R3Pose R3JointDesc::localFrame1

Joint frame in body 1 local coordinates.

◆ localFrame2

struct R3Pose R3JointDesc::localFrame2

Joint frame in body 2 local coordinates.

◆ lockedAxes

uint8_t R3JointDesc::lockedAxes

Locked joint degrees of freedom; translations precede rotations.

◆ motorAxes

uint8_t R3JointDesc::motorAxes

Axis mask enabling corresponding motors entries.

◆ motors

struct R3JointMotor R3JointDesc::motors[R3_JOINT_DOF_COUNT]

Axis motors in translation-then-rotation order.

◆ softness

struct R3SpringCoefficients R3JointDesc::softness

Spring coefficients for constraint correction.

◆ userData

struct R3UserData R3JointDesc::userData

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


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