DYNAMICS C API
C-compatible interface to the DYNAMICS library
Loading...
Searching...
No Matches
c_linear_spring Struct Reference

Linear spring between body-fixed points; body zero denotes ground. More...

#include <dynamics.h>

Public Attributes

int body_1
 First moving-body index, or zero for ground.
 
int body_2
 Second moving-body index, or zero for ground.
 
double point_1 [3]
 First attachment in body coordinates, or world coordinates for ground.
 
double point_2 [3]
 Second attachment in body coordinates, or world coordinates for ground.
 
double stiffness
 Linear stiffness.
 
double free_length
 Zero-force length; values below/above this produce compression/tension.
 

Detailed Description

Linear spring between body-fixed points; body zero denotes ground.

Member Data Documentation

◆ body_1

int c_linear_spring::body_1

First moving-body index, or zero for ground.

◆ body_2

int c_linear_spring::body_2

Second moving-body index, or zero for ground.

◆ point_1

double c_linear_spring::point_1[3]

First attachment in body coordinates, or world coordinates for ground.

◆ point_2

double c_linear_spring::point_2[3]

Second attachment in body coordinates, or world coordinates for ground.

◆ stiffness

double c_linear_spring::stiffness

Linear stiffness.

◆ free_length

double c_linear_spring::free_length

Zero-force length; values below/above this produce compression/tension.


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